• I have all my posts scheduled beforehand and most contain the following div tag:

    <div style=”display: inline-block; margin-right: 10px; margin-bottom: 10px;”>

    Two weeks ago, WordPress started removing the ‘inline-block’ part of the div tag. But when I go back in and edit the post after it’s published at it’s scheduled time, I can go back in and add ‘inline-block’ and it stays with no problems.

    This is so frustrating! Anyone have any ideas of how to stop it?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you not use CSS externally, rather than inline?

    For CSS changes, try a Custom CSS Manager plugin.

    Thread Starter kristastryker

    (@kristastryker)

    Thanks… the weird thing is that it doesn’t strip out the rest of the div, just the inline-block part. And only on scheduled posts, not when I manually hit publish!

    I have been having the exact same problem for the past 4 weeks.

    It only strips the inline style tag from the first div tag and not the rest of them in the post. Interestingly, a mysterious post revision appears dated with the same hour and minute as the last revision I made, yet the mystery revision says it’s “by ” (and no name is listed after the word by). By whom? And at the exact same moment I scheduled my post?

    When I was done editing the post yesterday and scheduled it, I took a screenshot of the list of post revisions I had made. The mystery revision (by no one) was not there yesterday when I took the screenshot! It’s very bizarre.

    Esmi,

    Thanks for that. That’s likely it. Will give the patches a try and see how it goes.

    Cheers!

    Thread Starter kristastryker

    (@kristastryker)

    Interesting, didn’t know about that. Thanks for the info Esmi, I’ll try it out! And skepticwebguy let me know if you get yours fixed.

    The issue should be sorted in WP 3.5.1

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WordPress removing part of div tag on scheduled posts’ is closed to new replies.