- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 29.07.22, 20:37
- Opened by: Eric Notarianni
- Closed by: Anonymous Submitter
- Closed on:
- Reason: Not a bug
Ticket #23619 - menu images problem
hello Fred,
in our menu on boutique.idms.fr
we have the option boutique idms, i have images of different categories in this option , but the images charged of these catagories are very heavy, how to modify the menu for having images categories less heavy for example to have the medium default of the categories or small defaut , please , because the images taken are very loud, i think it takes category default images
thanks to let me know
Comments
Hi, Eric.
For some reason I’m not even able to enter your back office, it just show the maintenance page.
Could you please add my IP to let me see your website - 95.172.173.216
sorry , i have forget to update the url to go to administration, now you have the good one to enter in the administration i have updated the links in the profile here
try again please with the good url
now it is good !
Do you mean the problem is resolved? Because I see menu images now
no Fred it is not solved
the problem comes of the image of each category, in the menu it takes the full image more than 300K
for each images, i will like to have in the menu the image of category the thumb image , of the medium-default category image or small dfault category image.
actually each image has more than 300k and the page now has 6mb weight !!
i want for this 9 images the version of small image in kb, do you understand me ?
the menu takes the cover of each category not the small versions, how to do that in css perhaps
in prestashop category , i see that i can a miniature for menu, but it depands of the menu of thetheme to be taken.
i have made a try but it seems that the menu of the theme don’t take the miniature of your menu, always i have the cover image of the category
There are two option for the category image
1. Display the main image as you have now.
2. Display “thumb” image that you can also define in the category settings.
To have the second option you have to open the file
find the line
and replace it with
hello fred
i have update the file with the line
if (file_exists(_PS_CAT_IMG_DIR_.$category→id_category.’_thumb.jpg’)) {
but the images are always image default of the category
i have made this here see the file in the attached file
let me know what to do in more ?
Attachments:
i see the source file html and i see always that the images are taken in the default of the categorie in the menu
an idea also it seems when i see in the category page that the the thumb is in .png
perhaps i must replace
if (file_exists(_PS_CAT_IMG_DIR_.$category→id_category.’_thumb.jpg’)) {
by
if (file_exists(_PS_CAT_IMG_DIR_.$category→id_category.’_thumb.png’)) {
let me know please
I have changed “large” image to “medium” old code
updated code
hello thanks Fred it is better , i try to optimize the page to be less heavy but it is always around 4MB
have you ideas to optimize more i have compressed the image of categories but….
I would recommend to reduce the number of slides. And Optimize images before upload to the slider