I have started to add some images to our website for sub-categories. It works fine.
Example here: https://www.designquest.biz/copeland-bedrooms.html
However, I am trying to customize the sub-category layout for the "Brands" page of our website to not display the sub-category name and my elementary understanding of Miva code is not helping. I am looking for some help.
Brands Page - I would like only the logo image to show: https://www.designquest.biz/brands.html
I have modified the sub-category_listing on the CTGY page as follows. Obviously not working. Am I even on track?
Example here: https://www.designquest.biz/copeland-bedrooms.html
However, I am trying to customize the sub-category layout for the "Brands" page of our website to not display the sub-category name and my elementary understanding of Miva code is not helping. I am looking for some help.
Brands Page - I would like only the logo image to show: https://www.designquest.biz/brands.html
I have modified the sub-category_listing on the CTGY page as follows. Obviously not working. Am I even on track?
Code:
<mvt:foreach array="cattree_categories" iterator="cattree_category"> <mvt:if expr="l.settings:cattree_category:parent_id EQ l.settings:category:id"> <mvt:assign name="l.null" value="miva_array_insert(l.settings:subcats, l.settings:cattree_category, -1)" /> </mvt:if> </mvt:foreach> <mvt:assign name="l.settings:subcat_count" value="miva_array_elements(l.settings:subcats)" /> <mvt:if expr="(l.settings:category:id NE 'Brands') AND (l.settings:subcats GT 0)"> <div class="row bg-white bottom-shadow main-content-row sub-category-layout"> <mvt:foreach iterator="sub_category" array="subcats"> <mvt:if expr="l.settings:sub_category:image"> <div class="column half medium-one-third large-one-third sub-category uppercase"> <a href="&mvt:sub_category:link;" title="&mvt:sub_category:name;"> <img src="&mvt:sub_category:image;" alt="&mvt:sub_category:name;" title="&mvt:sub_category:name;" /> <center>&mvt:sub_category:name;</center> </a> </div> <mvt:else> <div class="column half medium-one-third sub-category uppercase"> <a href="&mvt:sub_category:link;" title="&mvt:sub_category:name;" class="bold">&mvt:sub_category:name;</a> </div> </mvt:if> </mvt:foreach> </div> <mvt:else> <div class="row bg-white bottom-shadow main-content-row sub-category-layout"> <mvt:foreach iterator="sub_category" array="subcats"> <mvt:if expr="l.settings:sub_category:image"> <div class="column half medium-one-third large-one-third sub-category uppercase"> <a href="&mvt:sub_category:link;" > <img src="&mvt:sub_category:image;" /> </a> </div> <mvt:else> <div class="column half medium-one-third sub-category uppercase"> <a href="&mvt:sub_category:link;" title="&mvt:sub_category:name;" class="bold">&mvt:sub_category:name;</a> </div> </mvt:if> </mvt:foreach> </div> </mvt:if>
Comment