Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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
    Nunzio

    #719888

    Hi 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!
    Yigit

    #721287

    Hi, 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
    Nunzio

    #721589

    Hi,

    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,
    Yigit

    #721686

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

    #722778

    Hi,

    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,
    Ismael

    #722882

    Thanks 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
    Nunzio

    #724096

    Hi,

    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,
    Ismael

    #724259

    Thanks, 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
    Nunzio

    #725170

    Hey!

    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,
    Ismael

    #732279

    Thank you Ismael, I solved resizing png, is more acceptable now.
    Regards,
    Nunzio

    #733652

    Hi,

    Glad that it’s fixed :)

    Best regards,
    Nikko

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.