Gfinfo web Posted October 25, 2024 Share Posted October 25, 2024 Hello, I am having trouble with the conver image of my categories not showing up on the categgory page: It does apear on the sub-categories: I am using a child theme of the classic theme. Prestashop 1.7. I am afraid it migh b something studi as a button in configuration"active image" or something. Does anyone have an idea or tip? Link to comment Share on other sites More sharing options...
Divine Posted October 25, 2024 Share Posted October 25, 2024 Hi, could you post a screenshot of your images formats in your back-office please ? Link to comment Share on other sites More sharing options...
Gfinfo web Posted October 25, 2024 Author Share Posted October 25, 2024 Of course here it is: Link to comment Share on other sites More sharing options...
Divine Posted October 25, 2024 Share Posted October 25, 2024 (edited) Ok so, to me, the problem is the fact that the format used for categories covers in Classic theme is "large_default" but on your screenshot, this format is not attributed to the categories. So you can try to attribute this format to the categories and regenerate your images. Edited October 25, 2024 by Divine (see edit history) Link to comment Share on other sites More sharing options...
Gfinfo web Posted October 25, 2024 Author Share Posted October 25, 2024 Thank you for the return. I tried but it did not worked it still shows no image. I tried all of them and regenerating the images it did not worked. Link to comment Share on other sites More sharing options...
Divine Posted October 25, 2024 Share Posted October 25, 2024 Did you override the file "template >> catalog >> _partials >> category-header.tpl" in your child theme ? Link to comment Share on other sites More sharing options...
Gfinfo web Posted October 25, 2024 Author Share Posted October 25, 2024 Not that one: the child theme is the theme_1151 I also did a test, i switched themes to the classic and the category cover is working normaly. I screwup something somewere on the child-theme😅 Link to comment Share on other sites More sharing options...
Divine Posted October 25, 2024 Share Posted October 25, 2024 Is it possible to have a link to your shop ? Link to comment Share on other sites More sharing options...
Gfinfo web Posted October 25, 2024 Author Share Posted October 25, 2024 Sorry is in localhost still.😅 Link to comment Share on other sites More sharing options...
Divine Posted October 26, 2024 Share Posted October 26, 2024 Ok so it will be hard to help 😅 Can you post the content of the file "template >> catalog >> _partials >> category-header.tpl" of your parent Classic theme ? Link to comment Share on other sites More sharing options...
Gfinfo web Posted November 1, 2024 Author Share Posted November 1, 2024 Sorry about the taking long to post. Have being crazy around here. Some updates, I manage to make image apear. It is just apearing in the wrong dimention: I extended in the child theme templates\catalog\listing\category.tpl Just extended: {extends file='parent:catalog/listing/category.tpl'} Now my "template >> catalog >> _partials >> category-header.tpl" of my parent Classic theme Is like this: <div id="js-product-list-header"> {if $listing.pagination.items_shown_from == 1} <div class="block-category card card-block"> <h1 class="h1">{$category.name}</h1> <div class="block-category-inner"> {if $category.description} <div id="category-description" class="text-muted">{$category.description nofilter}</div> {/if} {if !empty($category.image.large.url)} <div class="category-cover"> <img src="{$category.image.large.url}" alt="{if !empty($category.image.legend)}{$category.image.legend}{else}{$category.name}{/if}" loading="lazy" width="141" height="180"> </div> {/if} </div> </div> {/if} </div> 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