Jump to content

Disable picture of category in subcategory


Recommended Posts

Hello,

 

i'm coming from opencart and now i'm busy with setting up my prestashop 1.6.0.6

Is it possible to not show the category picture when your in a subcategory, or product list?

I don't know if i'm explaining it good.

 

If i don't have a image for a category, i just see the name off the category.

I would like that also even when there is a picture for the category.

 

Like in the image below i would like the serpent not to be showed.

 

Already tryed something with the image menu, and now they are not placed anymore in the middel

 

Best regards Kristof

post-707896-0-62526800-1403794571_thumb.png

Edited by dwhobbyshop (see edit history)
Link to comment
Share on other sites

hello

thanks for clarification

open category.tpl file and remove this code:

{if $scenes || $category->description || $category->id_image}
			<div class="content_scene_cat">
            	 {if $scenes}
                 	<div class="content_scene">
                        <!-- Scenes -->
                        {include file="$tpl_dir./scenes.tpl" scenes=$scenes}
                        {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}
                        </div>
                    {else}
                    <!-- Category image -->
                    <div class="content_scene_cat_bg" {if $category->id_image}style="background:url({$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'}) 0 top no-repeat; background-size:contain; min-height:{$categorySize.height}px;" {/if}>
                        {if $category->description}
                            <div class="cat_desc">
                            <span class="category-name">
                                {strip}
                                    {$category->name|escape:'html':'UTF-8'}
                                    {if isset($categoryNameComplement)}
                                        {$categoryNameComplement|escape:'html':'UTF-8'}
                                    {/if}
                                {/strip}
                            </span>
                            {if Tools::strlen($category->description) > 350}
                                <div id="category_description_short" class="rte">{$description_short}</div>
                                <div id="category_description_full" class="unvisible rte">{$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 class="rte">{$category->description}</div>
                            {/if}
                            </div>
                        {/if}
                     
                     </div>
                  {/if}
            </div>
		{/if}
  • Like 4
Link to comment
Share on other sites

OK I did this.

 

change

 

<div class="content_scene_cat_bg" {if $category->id_image}style="background:url({$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'}) 0 top no-repeat; background-size:contain; min-height:{$categorySize.height}px;" {/if}>

 

To

 

<div class="content_scene_cat_bg">

  • Like 5
Link to comment
Share on other sites

  • 6 months later...

This is an older post BUT I just wanted to comment that it is pretty silly that this image cannot be toggled on and off like v1.5. I have one shop in 1.5 and my new shop on 1.6

 

Back in the good old days in 1.5, when the main category image was deleted, it removed the image AND the space for it. This feature was actaully made harder now. Weird...

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...