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
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
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??
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
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.
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
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.