Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #651583

    Hi;
    Am I missing some setting so that the top menu selection remains highlighted (active) after you have selected an item on the sub menu?

    Check out our test site please: http://035.acc.myftpupload.com/job/fine-gardening-crew-leader/

    I am using a job posting plugin, but am wondering why the top menu doesn’t stay active with “Careers” remaining highlighted.

    Thanks,
    Diane

    #651640

    Hey Diane!

    The CSS class to modify it is the following

    li.current-menu-item>a {
    
    }

    Feel free to do any changes per your requirement.

    Regards,
    Basilis

    #651653

    Thanks but I am not sure why the top menu is no longer highlighted once a submenu item is selected within the Enfold theme. I am not sure what to modify??

    #652705

    Hi,

    not sure what you mean cause I can’t see any issues on the link you’ve provided. I checked link in private section and highlighting seems to work fine for me.

    Best regards,
    Andy

    #652716

    The url that you mentioning private data works fine with the sub menu.

    The one I sent in this thread was:

    The top menu item “Careers” is not longer selected.

    Thanks.

    #654030

    Hi,

    It’s not highlighted or selected because the page “Career” has no relation or connection with the job posts. Please try this in the functions.php file:

    // custom script
    add_action('wp_footer', 'ava_custom_script');
    function ava_custom_script(){
    ?>
    <script type="text/javascript">
    (function($) {
    	function h() {
    		var job = $('body').hasClass('single-job_listing'),
    			career = $('.menu-item-top-level-7');
    		if(job) career.addClass('current_page_item current-menu-item');
    	}
    
    	h();
    })(jQuery);
    </script>
    <?php
    }

    Best regards,
    Ismael

    #654200

    Thank you so much! I wasn’t expecting so much help from this Support Forum. This is an amazing theme and the support is amazing also.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How to have top menu selection and side sub menu selection both active’ is closed to new replies.