Jump to content

Category Image issue


Recommended Posts

I added the cart block to the right column in the default Prestashop 1.6 theme. Now I'm having an issue with the category images being displayed.

 

The image is resized to a smaller size, and put in the middle of the image area, with a large gray block under it. I can change the block color to white, but I can't make the image display in its original full size (300 x 215 pixels). The image is resized to a height of 143 pixels.

 

In category.css I found this area:

          #subcategories ul li .subcategory-image a img {
            max-width: 33%;
            vertical-align: top; }

Which appears to resize the image to take up one-third of the image area, which is the size the image appears to be, but changing the 33% had no effect.

 

post-822383-0-80996300-1407078597_thumb.png

 

Is there a way to make the image show at its original size?

 

Link to comment
Share on other sites

I didn't know whether you meant to change the image preferences to that size, or the images themselves, so I tried both. I set the image preferences to that size, no effect. I set them back to default, resized my image to that size, no effect. I changed the settings AND used the resized image, still no effect. No matter what I do it still looks the same on the site.

Link to comment
Share on other sites

I captured the screen in my paint program to check sizing and resized the image to 570 x 189 and set the image preferences to that size as well, and now it finally fills the block up.

 

post-822383-0-77537100-1407280944_thumb.png

 

So I guess that's the way to make this work. All category images have to be 570 x 189 in size, and the image preferences have to be set to that size as well.

 

Now if only the category descriptions didn't write all over the top of the images, everything would be great. :) So for now I'm going without descriptions.

 

 

Link to comment
Share on other sites

  • 4 months later...

Hey guys I'm sorry to bring this backup but I'm having the exact same issue here. Meaning there are blank spaces to the left and to the right of the photo in the description of the category. 

 

It seems that it behaves the exact same way because I too have a grey band on the right side of the block.

https://drive.google.com/file/d/0B_D7C1f0zxY4QWlzSkFjbnBJdWs/view?usp=sharing

 

I tried fixing that by modifying the global.css but nothing gets to that 

.content_scene_cat .content_scene_cat_bg

 and if I reduce the size of the div it all scales down to proportion

 

https://drive.google.com/file/d/0B_D7C1f0zxY4N1VWbXRfMmd0cGs/view?usp=sharing

 

And if I add a 

display: none

 to .content_scene_cat_bg here is what it does

 

https://drive.google.com/file/d/0B_D7C1f0zxY4M2VBOTlXSzhJeGM/view?usp=sharing

 

And I'd rather keep the description than the photo seowise so I was wondering if anyone had a fix for that?

 

Thanks in advance for any help i've been trying all sorts of things for the last two days until I resigned to post here... :mellow:

Link to comment
Share on other sites

×
×
  • Create New...