Remove extra code not needed in block editor
-
Hello, this plugin is adding a whole bunch of extra code into the HTML of Block Editor pages.
It is adding its options to every single block. But the settings are not being used at all for these blocks.
This is making is very difficult to locate elements in the code editor of a page.
It is also making things ‘messy’.
To give just a glimpse (sine I can’t add screenshots here), one block has the following bits of code in it:
"extended_widget_opts": {"id_base":-1, "column":
{"desktop": "12", "tablet": "12", "mobile":"12"},"alignment" :
{"desktop": "default", "tablet": "default", "mobile": "default"}, "roles":
{"state":"'","options":"hide"}, "visibility":{"selected":"0", "options": "hide", "acf":
{"visibility":"hide", "field":"'', "condition":''', "value":"'}},"author_page" :{"author_pages":
{"selections": "1"}}, "devices" :{"options": "hide"}, "days":{"options": "hide"}, "dates":
{"options": "hide", "from":"''',"to":"'},"styling" :And it goes on and on…
- Is there a way to prevent this code from being added to widgets that are not using any widget options?
- Is there a way to add only the code pieces necessary for any particular widget option being applied to a block?
- How do we remove all the extra code after deactivating the widget options plugin, without having to re-format every single block on all of our pages?
Thank you
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.