osit Posted October 23, 2010 Share Posted October 23, 2010 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 More sharing options...
9Presta Posted October 24, 2010 Share Posted October 24, 2010 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.tplAnd 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 More sharing options...
osit Posted October 25, 2010 Author Share Posted October 25, 2010 It was very helpful. thanks Link to comment Share on other sites More sharing options...
rocky Posted October 26, 2010 Share Posted October 26, 2010 If your issue is resolved, please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now