Tagged: shop banner
-
AuthorPosts
-
December 2, 2016 at 12:54 am #719440
Hi, I can’t insert a shop banner image fullwidht in category page; it shows only in little dimension. Why?
In private link and access
Thanks in advance
Best regards
NunzioDecember 2, 2016 at 8:58 pm #719888Hi nuncer!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
#av_product_description .av-parallax-inner { background-size: contain; }
Also, please insert your image in full size.
Cheers!
YigitDecember 7, 2016 at 1:57 am #721287Hi, thanks, it’s better but it shows a little strip blue over and the banner is more little than space available (I tryed to resize the image for banner but is the same). How I can solve? And How I could change color and size of caracther of banner description?
Thanks you very much
Regards
NunzioDecember 7, 2016 at 5:15 pm #721589Hi,
Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:
#av_product_description h1 { color: white; font-size: 26px; } #av_product_description .av-parallax-inner { background-position: 50% 45%!important; }
Best regards,
YigitDecember 7, 2016 at 7:55 pm #721686Thanks Yigit, the fonts now is ok, but it shows again a border over banner and this reduce it. Can you help me again?
Thanks for your kindness.
Regards.
NunzioDecember 11, 2016 at 6:18 am #722778Hi,
The easiest solution is to set the background-size property to “cover”. This will force the background image to cover the whole container.
#av_product_description .av-parallax-inner { background-size: cover; }
If you’re not satisfied with the result, you can create multiple images for each category then apply it on different screen sizes by using css media queries which is a bit inconvenient.
Best regards,
IsmaelDecember 12, 2016 at 1:37 am #722882Thanks Ismael, It’s ok but only a problem about a banner (I use one for all categories and shop page); now is full like I wanted but the banner is out of focus and it shows only a center part of it. I use a png file 1926×290; I tryied to resize but it’s is the same. Is there anything other I can do?
Thank you again.
Regards
NunzioDecember 14, 2016 at 5:40 am #724096Hi,
banner is out of focus and it shows only a center part of it
This is an issue with the “cover” value because it stretches the image and in order to keep its aspect ratio, the edges of the image will overflow outside the container. We can set the value to 100% but it will probably distort the image.
#av_product_description .av-parallax-inner { background-size: 100% 100%; }
Best regards,
IsmaelDecember 14, 2016 at 2:01 pm #724259Thanks, I used your code instead last (background-size: cover); It works a little bit better but not completely, as you can see. It’s so strange.
Please let me know if there is other solution.
Thanks again for your kindness.Best Regards
NunzioDecember 16, 2016 at 6:00 am #725170Hey!
The other solution is to create multiple versions of the images but it’s a bit inconvenient as we mentioned in our previous post. You can also set the background size property to “contain” but it will create gaps or spaces if the container is not equal to the background image.
#av_product_description .av-parallax-inner { background-size: contain; }
The current height of the container is 263px but the background image is a bit too small (300x45px) so it will create a lot of spaces.
// https://profumidambiente.it/wp-content/uploads/2016/12/shopbanner1-300×45.png
Regards,
IsmaelJanuary 11, 2017 at 8:12 pm #732279Thank you Ismael, I solved resizing png, is more acceptable now.
Regards,
NunzioJanuary 14, 2017 at 8:41 pm #733652Hi,
Glad that it’s fixed :)
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.