Jump to content

Can I add icons in categories block?

Recommended Posts

You can only use a workaround. In the categories block, give each like a class like categorylink_*id_category* (you get it from the loop). Then, in your css, apply a background image to each.


Otherwise you need to do some really heavy modifications and allow images upload for each one!

Share this post

Link to post
Share on other sites

add class as Nemo suggested:


in category-tree-branch.tpl



<li class="category_{$node.id}{if isset($last) && $last == 'true'} last{/if}">
	href="{$node.link|escape:'html':'UTF-8'}"{if isset($currentCategoryId) && $node.id == $currentCategoryId} class="selected"{/if} title="{$node.desc|strip_tags|trim|escape:'html':'UTF-8'}">
	{if $node.children|@count > 0}
			{foreach from=$node.children item=child name=categoryTreeBranch}
				{if $smarty.foreach.categoryTreeBranch.last}
					{include file="$branche_tpl_path" node=$child last='true'}
					{include file="$branche_tpl_path" node=$child last='false'}

btw. you can also use fontawesome,

follow steps described here:

  • Like 1

Share this post

Link to post
Share on other sites


  • Create New...

Important Information

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