Studio1one Posted May 9, 2015 Share Posted May 9, 2015 I tried to comment this out at my new store´s theme, but it seems to be a huge problem when I do. Anyone who can solve this problem for me? Here is the code: {* * 2007-2015 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {include file="$tpl_dir./errors.tpl"} {if isset($category)} {if $category->id AND $category->active} {if isset($subcategories)} {if (isset($display_subcategories) && $display_subcategories eq 1) || !isset($display_subcategories) } <h1 class="page-heading{if (isset($subcategories) && !$products) || (isset($subcategories) && $products) || !isset($subcategories) && $products} product-listing{/if}"> <span class="cat-name"> {$category->name|escape:'html':'UTF-8'}{if isset($categoryNameComplement)} {$categoryNameComplement|escape:'html':'UTF-8'}{/if} </span> {include file="$tpl_dir./category-count.tpl"} </h1> {if $category->description} <div class="cat_desc rte"> {if Tools::strlen($category->description) > 350} <div id="category_description_short">{$description_short}</div> <div id="category_description_full" class="unvisible">{$category->description}</div> <a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more">{l s='More'}</a> {else} <div>{$category->description}</div> {/if} </div> {/if} <!-- Subcategories --> <h4>{l s='Subcategories'}</h4> <div id="subcategories"> <div class="clearfix row"> {foreach from=$subcategories item=subcategory} <div class="col-md-3 col-xs-6 col-sp-12"> <div class="subcategories scene_cat"> <div class="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 img-responsive" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'category_default')|escape:'html':'UTF-8'}" alt=""/> {else} <img class="replace-2x img-responsive" src="{$img_cat_dir}{$lang_iso}-default-category_default.jpg" alt=""/> {/if} </a> </div> <h5 class="cat-name"><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'}</a></h5> {if $subcategory.description} <div class="cat-desc">{$subcategory.description}</div> {/if} </div> </div> {/foreach} </div> </div> {/if} {/if} {if $products} {include file="$tpl_dir./sub/product/product-list-form.tpl"} {/if} {elseif $category->id} <p class="alert alert-warning">{l s='This category is currently unavailable.'}</p> {/if} {/if} Link to comment Share on other sites More sharing options...
Paulito Posted May 9, 2015 Share Posted May 9, 2015 Hello I suppose you could always use css for a quicker solution Add display:none; to around line 51 of catagory.css #subcategories ul { margin: 0 0 0 -20px; display:none; } Or you could try: #subcategories ul {display:none!important;} anywhere in global.css Before http://screencast.com/t/tKrIDZhO7gC After http://screencast.com/t/4zLuHZwp Maybe not the best way but give it a try Paul Link to comment Share on other sites More sharing options...
Studio1one Posted May 9, 2015 Author Share Posted May 9, 2015 Hello I suppose you could always use css for a quicker solution Add display:none; to around line 51 of catagory.css #subcategories ul { margin: 0 0 0 -20px; display:none; } Or you could try: #subcategories ul {display:none!important;} anywhere in global.css Before http://screencast.com/t/tKrIDZhO7gC After http://screencast.com/t/4zLuHZwp Maybe not the best way but give it a try Paul I did : #subcategories ul { margin: 0 0 0 -20px; display:none; } But then it´s still the text " Subcategories" there. Link to comment Share on other sites More sharing options...
Paulito Posted May 9, 2015 Share Posted May 9, 2015 Sorry, forgot that. Try adding this: #subcategories p.subcategory-heading {display:none} Paul Link to comment Share on other sites More sharing options...
Studio1one Posted May 9, 2015 Author Share Posted May 9, 2015 Sorry, forgot that. Try adding this: #subcategories p.subcategory-heading {display:none} Paul Did not work at all. 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