Jump to content
thirty bees forum

Help removing Header Banner on Sub categories.


Recommended Posts

Posted

Hi,

   Can someone point me in the right direction.   I want to remove the header banner on my sub category pages. (See image below)   When I look on developer tools, I get this...

<div id="category-banner">
                                    <picture class="img-responsive">
                    <!--[if IE 9]><video style="display: none;"><![endif]-->
                                        <!--[if IE 9]></video><![endif]-->
                    <img srcset="https://philippesantiques.com/img/c/11-community-theme-default_category_default.jpg" alt="Slot Machines" title="Slot Machines" width="870" height="217" class="img-responsive">
                  </picture>

  </div>

I can delete the element in the developer tools, and it works.   I just can't figure out which .tpl file to edit.    Any help would be appreciated.

pb4sc


                image.thumb.png.3a63d80315c727c2cb06b0b41a2736d1.png

Posted

Thanks to you both for trying to help me out.   You are correct 30 knees, it is in category.tpl     As far as your solution the.rampage.rado, it works, but is not ideal.   When I remove the  sub category image the banner image is gone.  

image.thumb.png.cb1877c32fc83227564fc28c13169005.png

 

  However, on the previous page I no longer have an image.....

 

image.png.cc0496c77f78bf833514c35ea9baea60.png

I completely understand about updating issues, but not having the category banner would be what I am looking for.    Couldn't I comment out the code, and then when I need to update, remove the comment?    Also, I am finding mixed solutions for commenting out the code.    One say to use {* Comment *}   while another I read says to use <! comment >   Any tips on what will work with Thirty Bees?   

Your help is much appreciated.

pb4sc

 

 

Posted

Solved.   I used <!-- comment --> to comment out the code.    In Category.tpl, I commented out the following, and it worked.  It was more than I thought I needed to comment out.

 

<!-- <div id="category-banner">
                  {if !empty($lazy_load)}
                    <noscript>
                      <img src="{Link::getGenericImageLink(
                               'categories',
                               $category->id_image,
                               'category',
                               (ImageManager::retinaSupport()) ? '2x' : ''
                           )|escape:'htmlall':'UTF-8'}"
                           alt="{$category->name|escape:'html':'UTF-8'}"
                           title="{$category->name|escape:'html':'UTF-8'}"
                           width="{getWidthSize|intval type='category'}"
                           height="{getHeightSize|intval type='category'}"
                           class="img-responsive"
                      >
                    </noscript>
                  {/if}
                  <picture class="img-responsive{if !empty($lazy_load)} tb-lazy-image{/if}">
                    <!--[if IE 9]><video style="display: none;"><![endif]-->
                    {if !empty($webp)}
                      <source {if !empty($lazy_load)}srcset="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII= 1w"
                              data-{/if}srcset="{Link::getGenericImageLink(
                                  'categories',
                                  $category->id_image,
                                  'category',
                                  (ImageManager::retinaSupport()) ? '2x' : ''
                              )|escape:'htmlall':'UTF-8'}"
                              title="{$category->name|escape:'html':'UTF-8'}"
                              type="image/webp"
                      >
                    {/if}
                    <!--[if IE 9]></video><![endif]-->
                    <img {if !empty($lazy_load)}srcset="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII= 1w"
                         data-{/if}srcset="{Link::getGenericImageLink(
                             'categories',
                             $category->id_image,
                             'category',
                             (ImageManager::retinaSupport()) ? '2x' : ''
                         )|escape:'htmlall':'UTF-8'}"
                         {if !empty($lazy_load)}src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="{/if}
                         alt="{$category->name|escape:'html':'UTF-8'}"
                         title="{$category->name|escape:'html':'UTF-8'}"
                         width="{getWidthSize|intval type='category'}"
                         height="{getHeightSize|intval type='category'}"
                         class="img-responsive"
                    >
                  </picture>
                </div> -->
            

Hope this helps someone in the future.

pb4sc

 

  • Like 1
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...