Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1467368

    On my homepage https://wta.nl/ I have a full width slider, made with Advanced Layerslider. It looks great, but the Kb size of it hurts my pagespeed score. Because it’s a very simple slider I want to replace the slider by a color section with a background image that looks almost the samen and stretches full width. But despite reading every topic on it on this forum, I can’t get it to work. The background image I want to use is the same as the one in my current slider. But when I apply it as a background in the color section it doesn’t stretch to fit full width. The image is 1783 x 534 px.

    What I’ve tried:

    – Gave the color section a Custom ID Attribute, like it says in your Enfold Documentation: https://kriesi.at/documentation/enfold/color-section/#color-section-with-100-content-width and pasted the code in Quick CSS. When applying a background color the color section is full width. But applying my background image doesn’t stretch full width.

    /* Color section container width */
    #section-container-width .container {
      width: 100% !important;
      min-width: 100%;
      padding: 0;
      margin: 0;
    }

    – After that I tried to apply my background image as an image, and used the following code found in this topic: https://kriesi.at/support/topic/full-width-images-on-a-page/#post-711522. That didn’t work either.

    .avia-image-container avia-image-container-inner, .avia-image-container avia-image-container-inner img {
        width: 100%;
    }

    – I finally found this recent topic https://kriesi.at/support/topic/full-screen-image-with-text-overlay/#post-1466589https://kriesi.at/support/topic/full-screen-image-with-text-overlay/#post-1466589 where moderator @Ismael says: try setting the Styling > Background Image > Background Repeat option to the fifth option (Stretch to Fit). But I don’t see that option in my Enfold Layout Builder. I even saw more posts on this forum where users got this Background Repeat advice. Why can’t I see this option?

    So I’m pretty confused right now. It seems so simple to recreate my current slider with a static background image and placing a few buttons in it. But I really don’t know how to do it. Please help.

    By the way: I’ve deleted all my previous attempts with the color section and Quick CSS, so my current page is again with only the current slider.

    • This topic was modified 1 week, 2 days ago by paulw185.
    • This topic was modified 1 week, 2 days ago by paulw185.
    • This topic was modified 1 week, 2 days ago by paulw185.
    #1467433

    Hey paulw185,

    Thank you for the inquiry.

    Styling > Background Image > Background Repeat option to the fifth option (Stretch to Fit)

    This option should be available in the Color Section element where you applied the background image. If the option is not available or if you can’t find it, please provide the login details in the private field so that we can checking the settings.

    Best regards,
    Ismael

    #1467442

    Hi @Ismael. Thanks for your reply. I’ve checked again, but I don’t see this option. Can you please check? Login in private field.

    #1467487

    Hey @Ismael. Did you change my settings? Because all of a sudden the Background Repeat option is visible! And it works! So if you did it, thank you very much. And if you didn’t, I don’t know what happened, but I’ll take it. Thanks!

    #1467490

    Wow, that worked beautifully. :-) With the stretched background image and a few regular animated buttons from the Enfold theme I was able to recreate the overall feel and animation of my previous LayerSlider. My website: https://wta.nl/

    With LayerSlider my score on PageSpeed Insights was 54 (mobile), even after taking most performance measures I could think of. Without LayerSlider, so with my new setup with the stretched bg image and animated buttons, my score went up to 74 (mobile) instantly. And when I also deactivated LayerSlider in the Enfold Layout Builder (but leave plugin files), my score even went up to 83 for a moment, and later around 76. But still, a great improvement. And I even imported an additional Google Font! Amazing.

    I don’t know yet what it does for my Google ranking, because page ranking is my next step to discover, but in any case my page speed won’t hurt it too much anymore. So thanks for the help @Ismael

    #1467496

    Hi,

    Great! Glad to know that this has been resolved. We didn’t actually make any changes to the site, so we’re not sure how it suddenly started working or how the option became available. Either way, we’re happy that everything is working as it should, including the performance upgrade. Please feel free to open another thread if you have more questions.

    Have a nice day.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Make background image in color section full width (stretch to fit)’ is closed to new replies.