| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Removing category names under category image | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Removing category names under category image
I am sure that this has probably been asked a thousand times so I will apologize in advance for my ignorance here.
Is it possible to remove the Category Name when there is an image for the category? For example, in the attached image, I would like to remove the names of the categories as the category image states the name. |
|||||||||
#2
|
|||||||
|
|||||||
Re: Removing category names under category image
You need to override customer/subcategories/icons/body.twig
See https://devs.x-cart.com/getting_started/how-to-apply-design-changes.html#seeing-structure-of-specific-page for more.
__________________
X-cart 5.2.12, php 5.6 Ed from Grenoble, France |
|||||||
#3
|
|||||||
|
|||||||
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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|