Including divs in your page content (3 posts)

  1. worchyld
    Posted 8 years ago #

    How do you hard-code divs into your page content?

    Say, for example you want a picture on the left and a description of the picture on the right in your content. In order to do this, I need to use at least 3 divs, one for the left, one for the right, and another to contain everything.

    But every time I type the div command, wordpress turns it into a paragraph. I can use Spans, but I don't want to use spans.

    So, I'm wondering -- is there another way of including a div, or hard-coding a div straight into the page content?


  2. moshu
    Posted 8 years ago #

    Don't ever type code in the wysiwyg.
    If you want your own code - turn off the wysiwyg editor; just switching between Visual and Code is not enough!

  3. worchyld
    Posted 8 years ago #

    That worked brilliantly! Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic