patricia.rd.93 Posted March 7, 2016 Share Posted March 7, 2016 (edited) Hello. I have a shop online in which I have a problem with subcategories' images. As far as I have not any image, it appears a question mark. I would like to know if it would be possible this not to happen. I attach a screenshot. Regards. Edited April 15, 2016 by patricia.rd.93 (see edit history) Link to comment Share on other sites More sharing options...
Simonas Invertus Posted March 8, 2016 Share Posted March 8, 2016 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. Link to comment Share on other sites More sharing options...
tuk66 Posted March 8, 2016 Share Posted March 8, 2016 Sure, you can remove all images directly in the theme template. How exactly, it depends on your theme. Link to comment Share on other sites More sharing options...
patricia.rd.93 Posted March 8, 2016 Author Share Posted March 8, 2016 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 More sharing options...
tuk66 Posted March 8, 2016 Share Posted March 8, 2016 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> 1 Link to comment Share on other sites More sharing options...
patricia.rd.93 Posted March 14, 2016 Author Share Posted March 14, 2016 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 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