Sign in

Hero Section SVG Image

  • This topic has 2 replies, 2 voices, and was last updated 3 years, 1 month ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #437
    Avatar photoajeet

    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}}`

    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    Avatar photoajeet

    Deleted that line. It works now. Thanks Bob

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Hero Section SVG Image’ is closed to new replies.