nmatev Posted November 17, 2015 Share Posted November 17, 2015 Hi, I have problem with my images in subcategories in prestashop. I find way how to hide all subcategories: {* {if isset($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} *} When I'll do this, all subcategories are hide like: But this isn't my idea. I want all links to subcategory stay, only need remove the image box's: Any ideas?Greetings. Link to comment Share on other sites More sharing options...
nmatev Posted November 17, 2015 Author Share Posted November 17, 2015 p.s. another way who can help me is that to remove links of all items in red circle ? Link to comment Share on other sites More sharing options...
Paulito Posted November 17, 2015 Share Posted November 17, 2015 Hello Is this any help to you: #subcategories ul li .subcategory-image a img {display: none;} #subcategories ul li:hover .subcategory-image a {display: none;} #subcategories ul li .subcategory-image a {display: none!important;} If so then place at the bottom of global.css Paul 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