Hi, thanks for reaching out.
Please, let us know the method you’re using for the Classic Editor or send a link to a tutorial or similar and we’ll take a look.
I used this plugin: https://ww.wp.xz.cn/plugins/advanced-tinymce-configuration/
to show me the elements used. adds TinyMCE config to the Settings in the dashboard and there is a button to show what is already used.
Using the plugin I reset wpautotop to false.
And under extended_valid_elements I added:
div[*], article[*], span[*]
That seems to do it for the default editors.
But when switching to the site builder I get the idea it must have its own version of those to contend with.
Plugin Contributor
alexgso
(@alexgso)
Hi starhorsepax2,
Can you please provide us with an example of the spans that are getting stripped? When are the spans strapped (after what action)?
What widgets are you attempting to add them too? If it’s the SiteOrigin Editor widget, please untick the Automatically Add Paragraphs setting to see if that helps as that will run wpautotop.
Kind regards,
Alex
I have tried this. SiteOrigin Editor, untick auto add paragraphs didn’t help either. The span just got stripped again.
Plugin Contributor
alexgso
(@alexgso)
Hi starhorsepax2,
Can you please provide me with an example of the HTML that contains spans that is getting stripped? When are the spans strapped (after saving, switching mode)?
Kind regards,
Alex