hsuchister Posted August 10, 2014 Share Posted August 10, 2014 Hello all you, please let me how to hide subcategories area as the attached image. Thanks P/S: sorry, my English is no good. Link to comment Share on other sites More sharing options...
dioniz Posted August 10, 2014 Share Posted August 10, 2014 Open themes/default-bootstrap/category.tpl and comment out or remove bottom code: {if isset($subcategories)} {if (isset($display_subcategories) && $display_subcategories eq 1) || !isset($display_subcategories) } <!-- Subcategories --> <div id="subcategories"> <p class="subcategory-heading">{l s='Subcategories'}</p> <ul class="clearfix"> {foreach from=$subcategories item=subcategory} <li> <div class="subcategory-image"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}" title="{$subcategory.name|escape:'html':'UTF-8'}" class="img"> {if $subcategory.id_image} <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img class="replace-2x" src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a> </div> <h5><a class="subcategory-name" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'|truncate:350}</a></h5> {if $subcategory.description} <div class="cat_desc">{$subcategory.description}</div> {/if} </li> {/foreach} </ul> </div> {/if} {/if} Link to comment Share on other sites More sharing options...
webdev0008 Posted August 10, 2014 Share Posted August 10, 2014 or simply add #subcategories{display:none;} in themes/your_theme_folder/css/category.css Link to comment Share on other sites More sharing options...
hsuchister Posted August 16, 2014 Author Share Posted August 16, 2014 Thanks @dioniz and @webdev0008 so much. Link to comment Share on other sites More sharing options...
Recommended Posts