Archived topic
Put svg in html GB box, and now can't load edit page
3 replies · Started by Alexis on May 22, 2020
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?
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/
This did end up working thank you so much!!!
No problem! :)