Jump to content

[Resolved] Appearance Issues, Remove Category Images


ridecals

Recommended Posts

Hi All,

Where do I add      <!-- and -->    ?  And does it matter if I am using e-Shift?

To remove the category images in file skins/foundation/templates/content.category.php add comments <!-- and --> to the following

 

<!-- {if isset($category.image)}
<div class="row">
   <div class="small-12 columns"><img src="{$category.image}" alt="{$category.cat_name}" class="marg-bottom"></div>
</div>
{/if} -->

 

To remove sub category images

 

<!-- {if isset($SUBCATS) && $SUBCATS}
<ul class="medium-block-grid-6 text-center{if $CONFIG.catalogue_expand_tree ==1} show-for-medium-up{else} small-block-grid-3{/if}" data-equalizer>
   {foreach from=$SUBCATS item=subcat}
   <li data-equalizer-watch>
      <a href="{$subcat.url}" title="{$subcat.cat_name}">
      <img class="th" src="{$subcat.cat_image}" alt="{$subcat.cat_name}">
      </a>
      <a href="{$subcat.url}" title="{$subcat.cat_name}"><small>{$subcat.cat_name}</small></a>
   </li>
   {/foreach}
</ul>
{/if} -->

 

Link to comment
Share on other sites

With the e-Shift skin, to remove the subcat images (the e-Shift skin does not show that category's image), make this edit.

In the e-Shift template content.category.php, find:

{if $SUBCATS}
<div id="subcategories">
    {foreach from=$SUBCATS item=subcat}
    <div class="subcategory">
        <a href="{$subcat.url}" title="{$subcat.cat_name}">
            <img src="{$subcat.cat_image}" alt="{$subcat.cat_name}" />
            {$subcat.cat_name}
        </a>
    </div>
    {/foreach}
</div>
{/if}

Change to:

{if $SUBCATS}
<div id="subcategories">
    {foreach from=$SUBCATS item=subcat}
    <div class="subcategory">
        <a href="{$subcat.url}" title="{$subcat.cat_name}">
            {* <img src="{$subcat.cat_image}" alt="{$subcat.cat_name}" /> *}
            {$subcat.cat_name}
        </a>
    </div>
    {/foreach}
</div>
{/if}

To remove the entire sub-cat area: change to:

{if false && $SUBCATS}
<div id="subcategories">
    {foreach from=$SUBCATS item=subcat}
    <div class="subcategory">
        <a href="{$subcat.url}" title="{$subcat.cat_name}">
            <img src="{$subcat.cat_image}" alt="{$subcat.cat_name}" />
            {$subcat.cat_name}
        </a>
    </div>
    {/foreach}
</div>
{/if}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...