how to change/remove/hide menu under installed plugins

Solution using Codes To hide a menu from a plugin menu, you need to look for the plugin hook. And after finding the hook, remove_submenu_page() will help you to achieve the desired task done. Using the hook and the remove_submenu_page(), you can remove the submenu exactly from that plugin. For a complete understanding of the … Read more

Set menu item class into body

You’re going about this backwards. What you want to do is use jQuery to test for the presence of the current menu class, then see if that item has the assigned class. If it does, then you add your CSS to the body. <script type=”text/javascript”> jQuery(document).ready(function($) { if($(‘li.current-menu-item’).hasClass(‘your_custom_class’)) { $(‘body’).css(‘background-color’, ‘orange’); } }); </script> Integrating … Read more

Adding two submenus to a menu

Hope you’ll find this well , I’m adding the code below. This is one of the way of doing it, you can do things in other ways also. add_action(‘admin_menu’,’create_admin_menu’); function create_admin_menu() { add_menu_page ( ‘Page Title’, ‘Top level menu Title’, ‘manage_options’, ‘your_unique_slug’, ‘your_magic_function’ ); function your_magic_function() { include_once(‘first.php’); } add_submenu_page ( ‘your_unique_slug’, ”, ”, ‘manage_options’, … Read more

wp_nav_menu in 3.7 add name class nav navbar-nav

Edit In this case, it appears that the problem is that you’re not actually outputting a custom nav menu at all, but rather the menu fallback: wp_page_menu(). Notice that the classes for the list items are page-item rather than menu-item. That’s a sure giveaway that the output is being generated by wp_page_menu() rather than wp_nav_menu(). … Read more

Add item ONLY to the primairy navigation

i did find my answer here : http://www.wpbeginner.com/wp-themes/how-to-add-custom-items-to-specific-wordpress-menus/ add_filter( ‘wp_nav_menu_items’, ‘your_custom_menu_item’, 10, 2 ); function your_custom_menu_item ( $items, $args ) { if (is_single() && $args->theme_location == ‘primary’) { $items .= ‘<li>Show whatever</li>’; } return $items; }

How to use page metadata while using wp_list_pages()?

You can do it easily with jQuery by using .eq() to add a specific class to each i element. Example: Add a class to your i element from PHP. <?php wp_list_pages(‘link_before=<i class=”retina_icon”></i>&link_after=<br >’); ?> Then add another class to it with jQuery. jQuery(‘.retina-icon:eq(0)’).addClass(“retina-icon-1”); jQuery(‘retina-icon:eq(1)’).addClass(“retina-icon-2”);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)