Post by deanno » Sat Sep 19, 2015 6:11 pm

I wish to add an icon at the beginning of each category and have the category change colour when high lighted please. How can i do this, the screen shot is what i would like.

Thanks

Dean

Attachments

Untitled.jpg

Untitled.jpg (42.7 KiB) Viewed 229 times


Newbie

Posts

Joined
Sun Aug 30, 2015 5:51 am

Post by straightlight » Sat Sep 19, 2015 7:50 pm

Depending on the contribution you might be using, CSS modifications could be needed. However, from the default theme, I would look for:

Code: Select all

<li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li>
and replace with:

Code: Select all

<li><img src="<?php echo $category['image']; ?>" width="x" height="x"><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li>
Note: Replace the 'x's from width and height to your preferences. These changes may also be needed to be done the same way over the child categories.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Administrator

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 41 guests