Highlight Active Menu FrontPage

Modern, responsive, unique and elegant one-page WordPress theme to showcase your creativity
GK User
Mon Nov 25, 2013 6:45 am
Hello,
I am having some problems. On the submenu pages of creativity the selected menus are highlighted but on the front page no. I would like to know how can i implement this also.
Ex: If we are click about us on the menu, the page should go down and the menu item to be highlighted.
Thank you,
User avatar
Fresh Boarder

teitbite
Mon Nov 25, 2013 7:05 am
Hi

You will need to add a javascript so field will get hilited after click. This is a little out of our support, but here is an example of such code in jQuery:

Code: Select all
$('.gkMenu a').click(function(){
    $('.gkMenu a').removeClass('active');
    $(this).addClass('active');
});


of course it has to be used on a frontpage only to not interfere with the default option.
User avatar
Moderator


cron