Support » Themes and Templates » [Resolved] Applyin style to Category list

[Resolved] Applyin style to Category list

  • 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)
  • esmi


    Forum Moderator

    A link to your site would help.

    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.



    Forum Moderator

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

    For Categories, there’s just .current-cat

    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 ‘[Resolved] Applyin style to Category list’ is closed to new replies.
Skip to toolbar