• Hi,

    I’m not using the inline svg block anything and only using the plugin for the upload aspect so i’m wondering if it’s possible to not register the block or make it not input the css in the header? Was looking through the code but didn’t find a filter for it

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Darin Kotter

    (@dkotter)

    Note that if running the latest version of Safe SVG, the CSS should only be output on pages that use that block.

    But if you’re looking to remove the block entirely, see this comment: https://github.com/10up/safe-svg/pull/80#issuecomment-1482534927

    Thread Starter linus89

    (@linus89)

    I’m running the 2.2.2? version and it still outputs this in the header

    <style id='safe-svg-svg-icon-style-inline-css'>.safe-svg-cover{text-align:center}.safe-svg-cover .safe-svg-inside{display:inline-block;max-width:100%}.safe-svg-cover svg{height:100%;max-height:100%;max-width:100%;width:100%}</style>

    Tested on multiple sites

    will do the action hook for now, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove the inline-css / hook to disable the block’ is closed to new replies.