WordPress.org

Support

Support » How-To and Troubleshooting » How do I add code to a post easily?

How do I add code to a post easily?

  • For WP 2.9, I can’t seem to figure out how to add this to a post. I am looking for a magic button I suppose, I know I can do it in HTML but want to do it after certain h2 tags and img tags to correct formatting problems in visual mode.

    I want to add:

    <div class="clear"> &nbsp; </div> to fix word wrap around other elements and:

    <p class="space"> &nbsp; </p> to add space between some elements like the text of a post and footnotes.

    CSS is:

    .clear { clear: both; }
    .space {line-height:1em; font-size: 1em; }

    Note that they work great, I just want a simple way to do it.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I add code to a post easily?’ is closed to new replies.
Skip to toolbar