Jump to content

Way to remove thumbnails from Branch menu pages


stl314

Recommended Posts

I have a category lets call "Shop by Type" and under that I have 5 children categories, when I click on Shop by Type it takes me to shop-by-type.html and list all of my children categories with thumbnail images. I would rather it just be a list with no thumbnails. How do I remove them?

Link to comment
Share on other sites

For only "shop-by-type", of for every category that has sub-categories?

If only for the one, then we can add a test in the template to suppress the <img> tag.

In the template content.category.php, find:

Near line 27-29:

      <a href="{$subcat.url}" title="{$subcat.cat_name}">
      <img class="th" src="{$subcat.cat_image}" alt="{$subcat.cat_name}">
      </a>

Change to:

    {if $category.cat_id ne 9}{* Get the category ID number of the category you want to hide thumbnails *}
      <a href="{$subcat.url}" title="{$subcat.cat_name}">
      <img class="th" src="{$subcat.cat_image}" alt="{$subcat.cat_name}">
      </a>
    {/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...