Yurj Posted February 17, 2019 Share Posted February 17, 2019 Hi guys I'm a new user of the forum I wanted to ask for help, I have a problem to insert the image in the category is set with its pixels. I am attaching the image with the problem. Thank you Link to comment Share on other sites More sharing options...
tdsoft Posted February 18, 2019 Share Posted February 18, 2019 You can change it in file: themes\classic\templates\catalog\listing\category.tpl Link to comment Share on other sites More sharing options...
Yurj Posted February 18, 2019 Author Share Posted February 18, 2019 5 hours ago, tdsoft said: Puoi cambiarlo nel file: themes \ classic \ templates \ catalog \ list \ category.tpl I only see this as never? Link to comment Share on other sites More sharing options...
tdsoft Posted February 18, 2019 Share Posted February 18, 2019 Your theme is changed, yes? because in Prestashop's Core, source like this: https://postimg.cc/hfZm8ZkY Also please try to edit the file: themes\classic\templates\catalog\_partials\category-header.tpl Link to comment Share on other sites More sharing options...
Yurj Posted February 18, 2019 Author Share Posted February 18, 2019 6 hours ago, tdsoft said: Il tuo tema è cambiato, sì? perché in Core di Prestashop, fonte come questa: https://postimg.cc/hfZm8ZkY Inoltre, prova a modificare il file: themes \ classic \ templates \ catalog \ _partials \ category-header.tpl I am attaching the files with the change ... but now I have another problem Thank you for the support Link to comment Share on other sites More sharing options...
tdsoft Posted February 19, 2019 Share Posted February 19, 2019 Your URL to IMAGE is wrong, what is that link to see that issue? please try to use URL to image as: /img/c/... Link to comment Share on other sites More sharing options...
Yurj Posted February 20, 2019 Author Share Posted February 20, 2019 23 hours ago, tdsoft said: Your URL to IMAGE is wrong, what is that link to see that issue? please try to use URL to image as: /img/c/... Not working this string Link to comment Share on other sites More sharing options...
tdsoft Posted February 20, 2019 Share Posted February 20, 2019 4 hours ago, Yurj said: Not working this string please update a your link to see that issue, soe someone can help you Link to comment Share on other sites More sharing options...
JBW Posted February 20, 2019 Share Posted February 20, 2019 Guys, you are messing up his complete template: 1. The size of the images has to be set first in the backoffice image settings, otherwise they will be ugly as they get resized in the browser. 2. The size of the category image is set in CSS - to change it, add following to your custom.css .block-category .category-cover img { width: 400px; height: 200px; } 3. Don't add the image URL manually into the Smarty template. The image is dynamically set based on the category choosen, no need to change the original code here, 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