WordPress.org

Ready to get started?Download WordPress

Forums

div class in post (6 posts)

  1. mindfeck
    Member
    Posted 6 years ago #

    Whenever I try to style part of a part with a div class, like for example put an ordered list inside a div, wordpress messes it up because it automatically changes the div to a p. How can I avoid this?

    WordPress also messes up some other code like spaces and videos. What can I do? Thanks.

  2. Alex Cragg
    Member
    Posted 6 years ago #

    where are you making these changes? Are you using the visual editor?

  3. mindfeck
    Member
    Posted 6 years ago #

    I change it in the code tab, and when I save it, it is fine. However, if I ever go back to the post, wordpress changes it, so if I save again, it is not how I wanted it.

  4. moshu
    Member
    Posted 6 years ago #

    I change it in the code tab,
    When you switch between visual/code - the wysiwyg animal is ALWAYS turned ON... so it screws up your code.
    The wysiwyg thing is NOT for inserting/typing code. It is for posting.

    You want your own code? Turn OFF the wysiwyg. Problem solved.

  5. mindfeck
    Member
    Posted 6 years ago #

    Yeah, unfortunately the posts are also edited by someone who needs to use the wysiwyg editor. I guess there's no other way.

  6. conniedai
    Member
    Posted 6 years ago #

    I also changed it to the code tab, and after I saved it, it showed fine. However, if I go back to the post again, wordpress changes it, thus I have to save it again, it is not how I expected.

    [sig moderated]

Topic Closed

This topic has been closed to new replies.

About this Topic