WordPress *strips* some inline CSS directives from my posts
-
I’m developing a website with WordPress.
In some cases, I would like to apply ad-hoc CSS to elements in a given post.
Most CSS directives (
background-color,font-family) are saved and delivered in my post exactly as I would like, and even survive switching back to the Visual Editor.However, some directives (
white-space,outline) appear to be being purged from my code, even if I never switched back to the Visual Editor.Directives in the latter category are just silently removed from my
style="…"attributes whenever the Save Draft, Publish, or Update buttons are clicked; they also do not even appear in the output html when clicking Preview.Swiching to the Classic Editor did not fix this.
How can I direct WordPress not to forcibly remove certain inline CSS directives I intentionally put into a post?
The topic ‘WordPress *strips* some inline CSS directives from my posts’ is closed to new replies.