Dave R Posted September 4, 2020 Share Posted September 4, 2020 Hi all. First post. I would like to remove the content area of the category page that appears when you select a menu item on the home page in the Classic Theme. I believe that this is the category page as when I "inspect" the live site I can delete a line of code the refers to the element "category row". This has the desired effect. However, I have literally searched every .tpl file under the Classic Theme and cannot find the template for this page in order to remove the code. Please could someone point me in the right direction. Thanks Dave Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted September 4, 2020 Share Posted September 4, 2020 Hi.. goto themes/classic/templates/catalog/_partials inside this path there is locate in category-header.tpl file Change code <div id="js-product-list-header"> {if $listing.pagination.items_shown_from == 1} <div class="block-category card card-block"> <h1 class="h1">{$category.name}</h1> <div class="block-category-inner"> {if $category.description} <div id="category-description" class="text-muted">{$category.description nofilter}</div> {/if} {if $category.image.large.url} <div class="category-cover"> <img src="{$category.image.large.url}" alt="{if !empty($category.image.legend)}{$category.image.legend}{else}{$category.name}{/if}"> </div> {/if} </div> </div> {/if} </div> To <div id="js-product-list-header"> {if $listing.pagination.items_shown_from == 1} <div class="block-category card card-block"> <h1 class="h1">{$category.name}</h1> <div class="block-category-inner"> {*{if $category.description} <div id="category-description" class="text-muted">{$category.description nofilter}</div> {/if}*} {if $category.image.large.url} <div class="category-cover"> <img src="{$category.image.large.url}" alt="{if !empty($category.image.legend)}{$category.image.legend}{else}{$category.name}{/if}"> </div> {/if} </div> </div> {/if} </div> Link to comment Share on other sites More sharing options...
Dave R Posted September 5, 2020 Author Share Posted September 5, 2020 Firstlt, thanks so much for the reply. i implemented your changes and cleared cache and history, but the live page was not effected. I then blocked even more content in the same template and still no change. So I think that this is not the correct template for the page content that I want to change. Is there anything else I can tell you that would help you to identify the template that I need to edit? Thanks Dave Link to comment Share on other sites More sharing options...
Dave R Posted September 5, 2020 Author Share Posted September 5, 2020 I have attached a screenshot of the inspected page with the line that I remove in order to get the desired effect. The "product element' deletes all the elments I need to get rid of. Link to comment Share on other sites More sharing options...
tanmalik786 Posted September 8, 2020 Share Posted September 8, 2020 (edited) Clear your cache [Advanced Parameters -> Performance], as depicted in the image below and see if the change in code is taking any effect? don't forget to Save the changes after making this change. Edited September 8, 2020 by Tanver (see edit history) 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