• In order to style my posts I used to add a style tag straight into the text editor like this:

    <style><!–
    (here’s where I’d add all my css styling that was specific to that post)
    –></style>

    It was the perfect solution, since I like to style all of my posts a little differently but did not want to use inline css.

    Now, after upgrading to 3.9, it seems like the editor is hiding the style tag for existing posts and not accepting it for any new post I create:

    Existing posts: The style tag and all the information inside is not showing up in the editor anymore, but I can find it in the code when I go to ‘inspect element’ and the posts are showing up as they should.

    New posts: The style tag disappears as soon as I switch from ‘Text’ to ‘Visual’, even if I save before. It completely ignore the styling commands, and they don’t show up in the code.

    Has this happened to anyone else? Is there any way around this? I would really hate to have to use inline css for all my styling.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You should never added CSS blocks inside Post or Page content. CSS should never be inserted inside the <body></body> tags but only in the <head></head> section of a page – whether you are using WordPress or not. It’s simply the way in which CSS has always worked.

    Try adding your post specific style to your theme’s CSS via a child theme or a custom CSS plugin,

    Why was my response removed from this thread?

    @dumb Domme: If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else’s topic.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Post editor automatically hides/deletes style tag after upgrade to 3.9’ is closed to new replies.