Jump to content

[SOLVED] How to stylise subcategories


rodt
 Share

Recommended Posts

Can anyone help me with some code to put a nice border around each subcategory and its link, that displays on the product categories page. (And where the code needs to be inserted).

At the moment the categories wrap around and there is no spacing between each row, as in the attached example showing a category and 6 subcategories.

Thanks,

Rodt

34546_at48sKxDOHZwul1LJdio_t

Share this post


Link to post
Share on other sites

Change the following code in the /* category.tpl */ section of css/global.css in your theme's directory:

body#category #subcategories li { margin-right: 10px }



to:

body#category #subcategories li {
  margin-right: 10px;
  margin-bottom: 10px
}

Share this post


Link to post
Share on other sites

Brilliant! Thanks Rocky. I've included the change in category.tpl as follows:-

body#category #subcategories li { margin-bottom: 10px }

(I'm using v1.4.0.3).

Attachment shows how there is some nice separation now between the two category rows.

Are you able to help me with showing a border (box) around each subcategory?

Regards (from Tassie!),

Rod

34575_OrbB7kxe0Zqo5a1PLzaF_t

Share this post


Link to post
Share on other sites

Rocky, you're a Godsend, thanks again.

You've now inspired me to start on a steep learning curve so that I can (hopefully) make some of these easier coding changes for myself.

Keep up the great work.

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More