Jump to content

[Solved] Problem With Subcategories' Images


Recommended Posts

Yes it is possible. 

You just need to upload your images. 

If images are uploaded then check if the path is correct.

You can also try to regenerate all images in backOffice.

Or you can edit theme not to show images in subcategories and show only text.

 

 

Sure, you can remove all images directly in the theme template. How exactly, it depends on your theme.

 

Hello.

 

Thank you very much for your answers.

 

I would like to remove the images with "?", and show only text. I have the theme "default-bootstrap (version 1.0)".

 

Regards.

Link to comment
Share on other sites

Try to change <div class="subcategory-image"> block in the /themes/default-bootstrap/category.tpl file:

<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="{$subcategory.name|escape:'html':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" />
        {/if}
    </a>
</div>
  • Like 1
Link to comment
Share on other sites

 

Try to change <div class="subcategory-image"> block in the /themes/default-bootstrap/category.tpl file:

<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="{$subcategory.name|escape:'html':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" />
        {/if}
    </a>
</div>

 

Hello.

 

Ok. Thank you very much.

 

Regards.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...