We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Hero Section SVG Image

  • #437
    Avatar photo[anonymous]

    Hi Bob,

    Can you please check, in the Editorial theme, if you can set the svg as a hero image. I can use the svg in everypost except the hero section ( attached screenshot).svg-issue



    Avatar photoBob

    We have to change the way the SVG files are generated by optionImages.

    Right now, the image generation option uses two attributes: srcset and sizes  to provide several additional source images but the SVG files should be excluded from this mechanism.

    To fix it now, remove the following piece of code from index.hbs file (line 24):

    ` {{responsiveSrcSet @config.custom.uploadHero}}`

    Avatar photo[anonymous]

    Deleted that line. It works now. Thanks Bob