Forums

Creating custom menu item highlighting (5 posts)

  1. meganlee1984
    Member
    Posted 4 months ago #

    I'm creating a custom theme where posts are pulled into a list to show on the right side bar navigation. I would like to be able to highlight the post that the user is on, but not able to target the menu items correctly. I've tried using:

    .col4 .current_menu_item a {
    	color:#06C;
    	font-style:italic;
    	font-weight:600;
    }

    Any tips on how I'm targeting this wrong would be greatly appreciated.

  2. curtismchale
    Member
    Posted 4 months ago #

    How about a link to the site in question so we can see exactly what the code is doing.

  3. meganlee1984
    Member
    Posted 4 months ago #

  4. jrav001
    Member
    Posted 4 months ago #

    There are no classes associated with the links to indicate which is currently being viewed. How are you generating the menu?

  5. meganlee1984
    Member
    Posted 4 months ago #

    The menu is being beign generated by pulling a list of posts.

    So the site works as the first page displays content (a video), and a list of links that is pulling for the latest post in a category. So the links are the lists of posts that are just dynamically from a custom post query. I'm just not sure how to target the css to get the links appear as active states when the user is on a given page.

Reply

You must log in to post.

About this Topic