Highlight inner post menu current item

I asked this question based on 2 facts: – The menu is created by WordPress. – The plugin; all it does is generate a shortcut to insert the menu inside the post. So the question is not Theme related, and not plugin related. It´s WordPress related. Nevertheless, I asked the Theme developer and the Plugin … Read more

jquery plugin won’t fire when hamburger class element clicked

This should work for you. I just copied your code and made adjustments. jQuery.noConflict(); jQuery(“li.menu-item-47 a”).on(“click”,function( event ) { event.preventDefault(); if(confirm(“YOU ARE LEAVING THE WEBSITE” + ‘\n’ + “” + ‘\n’ + “You are being connected to a secure bill payment system. Press Ok to continue.”)) { window.open( this ,’_blank’); //This will open the website … Read more

Display_name in menu

You should first check if the user is logged in, doing is_user_logged_in(), if so you get the username. function give_profile_name(){ if ( is_user_logged_in() ) { $user=wp_get_current_user(); $name=$user->display_name; return $name; } else { return “”; } } You can also change your if to check if the shortcode is returning Untitled. if ( isset( $shortcode_tags[‘profile_name’] ) … Read more

Display searchform in the menu

It seems ok with function wpgood_nav_search($items, $args) { if( ($args->theme_location == ‘primary’ ) or ($args->theme_location == ‘top-menu-deconnecte’ )) { return $items . ‘<li class=”well-search_top”>’ . get_search_form(false) . ‘</li>’; } else { return $items; } }