pb4sc Posted July 25, 2023 Share Posted July 25, 2023 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 Link to comment Share on other sites More sharing options...
30knees Posted July 26, 2023 Share Posted July 26, 2023 I don't know for sure but did you check category.tpl? Link to comment Share on other sites More sharing options...
the.rampage.rado Posted July 26, 2023 Share Posted July 26, 2023 You can remove all categories thumbnails. I would not modify core or theme files because after an update of those the changes are gone and have to be redone. Link to comment Share on other sites More sharing options...
pb4sc Posted July 26, 2023 Author Share Posted July 26, 2023 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. However, on the previous page I no longer have an image..... 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 Link to comment Share on other sites More sharing options...
pb4sc Posted July 27, 2023 Author Share Posted July 27, 2023 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 1 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now