How to have multiple WordPress Menus

There are a few steps you need to take to add menus, the wordpress way. Register the menu in functions.php using register_nav_menus() Codex Link: https://codex.wordpress.org/Function_Reference/register_nav_menus Example: register_nav_menus( array( ‘my_custom_menu’ => ‘My Custom menu’, ‘my_other_menu’ => ‘My Other Menu’, ) ); Now you can create new menus on the back-end Login and go to Appearance -> … Read more

Override css rules of a plugin within my own theme

The style_loader_src filter is used to modify/filter the src (url) of a stylesheet. The function callback accepts two parameters, the first is the original src and the second the handler of the stylesheet. The handler is the first parameter of wp_enqueue_style() used to enqueue the stylesheet. So, to replace a stylsheet source with another one … Read more

Adding an extra sidebar to your theme

get_sidebar(‘left’); actually refers to a file, not the sidebar itself. Are you seeing the sidebar in the Admin section? Are you trying to display it on the front end? If the answer to both of these questions are “yes”, then here’s the solution: Create a file called sidebar-left.php. In this file, you will need to … Read more

Using Grunt and keeping theme comments

style.css may contain only comment with Theme Name: … . It just tells to WordPress about your theme. You have no need to load style.css in theme through tag <link … >. So. Now you can leave your only one css file main.css with all styles in <head>.