Home Forums Mint Theme Discussion & Support Active page navigation hightlight

This topic is: resolved

This topic contains 7 replies, has 2 voices, and was last updated by  themeweaver 3 years, 7 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #3739

    Gareth Davies
    Member
    Post count: 4

    Hi,

    Is it possible to have the navigation for the active page you are on to be highlighted. So when your viewing the ‘members’ the navigation item for ‘members’ would be highlighted.

    Thanks

    #3740

    themeweaver
    Keymaster
    Post count: 730

    You could add some custom css in theme-options or a child theme that used the
    current-menu-item selector.

    e.g.

    .current-menu-item a{ color: red;}

    Of course you can add more interesting styling than this.

    #3743

    Gareth Davies
    Member
    Post count: 4

    Thanks, i’ve added the above to the theme options but the styling hasn’t been added to the navigation for me

    #3744

    themeweaver
    Keymaster
    Post count: 730

    Do you have a url?

    #3745

    Gareth Davies
    Member
    Post count: 4

    I do but the site is still in development so I’d rather not post the url, can I email it to you?

    #3746

    themeweaver
    Keymaster
    Post count: 730

    The selector may need to be more specific. I know this works as I have it a child theme I am developing for a client:

    .nav-menu li.current-menu-item a{
    …yourstuff in here

    }

    #3747

    Gareth Davies
    Member
    Post count: 4

    Ah yes that’s working now, thanks!

    #3748

    themeweaver
    Keymaster
    Post count: 730

    Great.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.