wqest Posted August 21, 2010 Share Posted August 21, 2010 Hi, want to make different backgrounds for categories. Does anyone know, how to do this and teach me, please Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted August 21, 2010 Share Posted August 21, 2010 example :1. Use inline CSS {if $category->id == 1} Content-1 {elseif $category->id == 2} Content-2 {/if} 2. Use Class or Id CSS id == 1}"myclass-1"{elseif $category->id == 2}"myclass-2"{/if}> Content If you have a lot of Category Product, and you wanted to show different background in each category pages, you should use foreach to get all category id to compare with current category pages. Link to comment Share on other sites More sharing options...
Patric Posted August 22, 2010 Share Posted August 22, 2010 Topic moved. 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