• Resolved MaddTechWF

    (@maddtechwf)


    I have a category list that shows up like a menu. Is there default CSS code that will allow me to change its color when selected?

Viewing 4 replies - 1 through 4 (of 4 total)
  • A link to your site would help.

    Thread Starter MaddTechWF

    (@maddtechwf)

    I don’t have the theme up. I’m currently working on it. I’m using the <?php wp_list_categories('arguments'); ?> and want to apply a selected theme to the current item selected. I just wasn’t sure what code snippet to put in my CSS that would tell it to change the font color of the selected item.

    For Pages, you can use .current_page_item,.current_page_parent,.current_page_ancestor

    For Categories, there’s just .current-cat

    Thread Starter MaddTechWF

    (@maddtechwf)

    I just found my answer here

    li.categories { ... }  /* outermost list item */
     li.cat-item { ... }
     li.cat-item-7 { ... }  /* category ID #7, etc */
     li.current-cat { ... }
     li.current-cat-parent { ... }
     ul.children { ... }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Applyin style to Category list’ is closed to new replies.