• Resolved intern101

    (@intern101)


    Can i make a div inside the wp post? i want to modify the positioning of a certain paragraph without affecting the other page.
    .entry-content p is the tag that holds the post. If not, are there other ways that I can change a certain post without other page being affected? I am new to wordpress by the way. Thank You

Viewing 1 replies (of 1 total)
  • Click on the “Text” tab in the WP editor instead of using the “Visual” tab, and you can add raw HTML or javascript. You may need to assign a class to your div to prevent WP from cleaning it out when you save the post though, which you should do anyway to alter the positioning via your CSS file rather than using an inline style.

    Maybe something like this, renaming the “my-class” to something of your choosing:

    <div class="my-class">Your content.</div>

Viewing 1 replies (of 1 total)

The topic ‘div tag inside a post’ is closed to new replies.