• Resolved egallivan

    (@egallivan)


    Hi, I would like to have the current category highlighted in the sidebar. For instance, if you are on the category1 page, the title, “category 1” should be highlighted in the sidebar. I searched for a plugin to accomplish this, but didn’t find anything. Does a plugin exist, or can someone suggest how I could modify the code of the necessary page(s) to make this work?

    Thanks,

    Elise

Viewing 4 replies - 1 through 4 (of 4 total)
  • It does depend upon your site and the theme it is currently using but something like:

    .sidebar .current_page_item,.sidebar .current_page_parent,.sidebar .current_page_ancestor,
    .sidebar .current-cat {
    	font-weight:bold;
    }

    added to the bottom of your theme’s stylesheet might provide the highlighting you need. If that doesn’t work, try posting a link to your site here.

    Thread Starter egallivan

    (@egallivan)

    Unfortunately, that didn’t work for me. I am using The Green Park 2 theme by cordobo. my url is https://www.deliciouslyhealthyrecipes.com. Thanks for replying to my post – I appreciate it!

    Elise

    Try adding:

    #sidebar .current-cat {
    	font-weight:bold;
    }

    to the bottom of style.css

    Thread Starter egallivan

    (@egallivan)

    That worked – yay! Thanks again for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to highlight current category in sidebar navigation?’ is closed to new replies.