Re: Removing category names under category image
I modified this in theme_tweaker/customer/subcategories/icons/body.twig
However I have not worked with version 5.4
{##
# Subcategories list (grid style)
#}
{% if this.getSubcategories() %}
<ul class="subcategory-view-icons subcategory-list grid-list clearfix">
{% for subcategory in this.getSubcategories() %}
{% if subcategory.hasAvailableMembership() %}
<li>
<a href="{{ url('category', '', {'category_id': subcategory.category_id}) }}">
<span class="subcategory-icon lazy-load">
{{ widget('\\XLite\\View\\Image', isBlurApplicable=true, image=subcategory.image, maxWidth=this.getIconWidth(), maxHeight=this.getIconHeight(), centerImage='1', alt=this.getAlt(subcategory.image)) }}
</span>
//MAKE MODIFICATION HERE
{% if this.category.name != 'NAME OF THE CATEGORY YOU WANT TO HIDE NAMES FOR' %}
<span class="subcategory-name">{{ subcategory.name }}</span>
{% endif %}
</a>
</li>
{% endif %}
{% endfor %}
{% for item in this.getNestedViewList('children') %}
<li>{{ item.display() }}</li>
{% endfor %}
</ul>
{% endif %}
{{ widget_list('subcategories.base') }}
__________________
Version 5.3.6.6
|