How to add Features in WordPress using add_theme_support Function

While developing wordpress theme, you wont get section to add post image. So you need to add the following codes to function.php To display thumbnail in single.php or page.php (anywhere in frontend), you need to insert this code inside php // Add feaure image thumbnail function thumbnail_add(){ add_theme_support( ‘post-thumbnails’ ); } add_action(“after_setup_theme”,”thumbnail_add”); add_action is an … Read moreHow to add Features in WordPress using add_theme_support Function

HOW TO REGISTER NAV MENU IN WORDPRESS?

The easiest way to add the nav manu in the dashboard is by using “register_nav_menus()” function and hook in the functions.phpThe syntax is as follow: function menu_name(){“header” => “primary Menu”,“footer” => “Footer Menu”} add_action(“init”,”menu_name”); // in the above header and footer are the two menus that I am going to embade in my project. You … Read moreHOW TO REGISTER NAV MENU IN WORDPRESS?