[Support request] Put svg in html GB box, and now can't load edit page

Home Forums Support Put svg in html GB box, and now can't load edit page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1297027
    Alexis

    So this is super frustrating. I added my .svg images to .html boxes so I could wrap them in divs and make them buttons. Unfortunately one of the files my client sent me is an ENORMOUS svg and once I pasted it in that box the page stopped working. Now the page takes something like ten minutes to load up (the page being the block editor page in GP), and every time I click something it stops working again. I’m working on just letting it take ten minutes per click to load… but in the mean time can I go somewhere and remove those two svgs in a .php file or something?

    #1297298
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    So you had a big chunk of SVG HTML code which you added to an icon field. Now that it’s in there, the editor doesn’t load?

    You’ll need to remove the HTML from those fields, or just click the “Clear” button: https://docs.generateblocks.com/article/icon-picker-overview/

    It may take a while, but that’s the only way to remove it.

    Icons should be simple, so their SVG code shouldn’t be too massive. It’s best to run it through a tool like this first: https://jakearchibald.github.io/svgomg/

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