Jump to content

how to do selected class for categories_block_left ul.tree li


Recommended Posts

I would like to change selected background of list element in category_block but there is only a "selected" class for selector a.

Is there a way to assign class "selected" to list element li: categories_block_left ul.tree li ?

Link to comment
Share on other sites

I think it's better to style for a.selected than li tag.

To style for a just do

.categories_block_left ul.tree li a {
   display: block;
   background: #000000;
}

.categories_block_left ul.tree li a.selected {
   background: #ffffff;
   color: #000000;
}



If you still want to have "selected" in li tag, you can find this file:
/modules/blockcategories/category-tree-branch.tpl
And see these lines in top:


{$node.name|escape:html:'UTF-8'}



Change them to:


{$node.name|escape:html:'UTF-8'}



Hope it help :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...