How to exclude specific blog categories from blog archive page

Hey Friends,
If you want to remove or hide any specific blog categories from the blog archive page in WordPress. So you just need to add the below function or hook in function.php file in your theme folder.


   function exclude_category( $query ) {
   if ( $query->is_home() && $query->is_main_query() ) {
   $query->set( 'cat', '-1, -2' ); //The IDs of the categories to exclude.
   }
   }
   add_action( 'pre_get_posts', 'exclude_category' );

Redirect page after submitting contact form 7

If you want to redirect the page after the web form submission. Then you can do it easily by adding the JavaScript code in header.php Or footer.php.


<script type="text/javascript">
document.addEventListener( 'wpcf7mailsent', function( event ) {
    location = '/thank-you/';
}, false );
</script>

Also if you want a different page for a specific contact form (ID=123) after submission, then you can add the following code.


<script type="text/javascript">
document.addEventListener( 'wpcf7mailsent', function( event ) {
    if ( '590' == event.detail.contactFormId ) {
        location = '/quote-thank-you/';
    }
}, false );
</script>

How to increase Checkbox size in HTML/CSS

Now you can easily increase the size of the HTML checkbox. You just need to apply CSS3 properties.
Here is the CSS code to add with your CSS class or ID.


input[type="checkbox"]{
    -ms-transform: scale(2); /* IE */
    -moz-transform: scale(2); /* FF */
    -webkit-transform: scale(2); /* Safari and Chrome */
    -o-transform: scale(2); /* Opera */
}