Code Canal is the simple Web resource site for WordPress, Magento and other CMS and frameworks, with easy to understand technologies and provides easy tutorials for the creating and editing site.
Our Latest Tutorials Guide for WordPress :
If you want to remove admin bar for the users except admin, you can remove it by putting this simple code in function.php file or in the plugin file.
If you want to get the click event for outside of some specific Div or area, than a simple solution for the situation is:
To completely remove your WordPress version number, you will need to add the following function to your functions.php file:
To redirect to another URL, such as a Thank You page, on successful submission of a Contact Form 7 form, you need to simply put this function.
You can sort Products in Cart by SKU in Woo Commerce by following the given functions.
Just you will need to add the following function to your functions.php file:
Here we will see the WordPress Pagination With get_posts function for the blogs.
Here we will see WordPress pagination with the simple code.
Here we will see How to create a page and assign a page template automatically in WordPress while activating theme.
1. Create Home page on Theme activation
Put the below code in function.php file :
WordPress includes a lot of extra stuff through the wp_head() hook included in most themes. Most of this stuff are unnecessary. A few lines of extra code in your header probably won’t slow your site down that much, but I like to keep things as clean and efficient as possible.
Here we will remove the following content from the header :
Want to move comment text to the bottom after name, email and URL fields? Learn how to move comment text field to the bottom in WordPress.
Simply add this code snippet in your theme’s functions.php file or in a site-specific plugin.