WordPress multisite sharing menu having working current_menu_item class

Have fixed this problem by added a new class “current-site” on the menu. <?php $blogs = get_sites(); $current_site = get_current_blog_id(); foreach( $blogs as $b ){ //$b->blog_id) switch_to_blog($b->blog_id); if($current_site == $b->blog_id){ wp_nav_menu(array( ‘theme_location’=>’primary_menu’, ‘menu_class’=>’navbar current-site’, ‘container’ => false, ‘link_before’ => ‘<span class=”menu-wrap”>’, ‘link_after’=>'</span>’, ‘fallback_cb’ => false, ‘walker’ => new Walker_Nav_Pointers(), )); } else { wp_nav_menu(array( ‘theme_location’=>’primary_menu’, … Read more

Creating a dynamic bootstrap tab menu for WordPress

The first thing that I notice is that you’re using categories for tabs and posts for panels. If you want to have categories both as tabs and panels, then you should loop the categories twice so that you can use category term properties in the HTML elements’ attributes. Example To run the categories loop twice, … Read more

Customized Divi Theme Needs more Menus

Login and try to go to https://www.bioforward.org/wp-admin/nav-menus.php or select appearance>menus in the back end dashboard from the left side. Click “create a new menu” and give you menu a name like “Temp Menu” or “New Menu”. Select posts or pages from the left hand side and click “add to menu” and organize as you like. … Read more

Top Level Menu Item points to first item on submenu

Replace the menu entry for “travel” with “travel to destination”, then change the text in the menu item to “Travel” You can also do a redirect using a redirection manager plugin and redirect the /travel/ url to the sub category

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