Jump to content

Problem image resize


Yurj

Recommended Posts

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

Immagine3.png

Immagine4.png

Link to comment
Share on other sites

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

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...