Support » Fixing WordPress » How to add div

  • I’m trying add div with background image into post, theme is Patchwork 1.0. I don’t know in what php file I should add that div and where in code?
    Does anybody know?

Viewing 3 replies - 1 through 3 (of 3 total)
  • WPyogi


    Forum Moderator

    It depends on what you are trying to do — where you want the background image. If you can be more specific and include a link to your site, someone can probably be of more help.

    I can’t give link I do it locally. Simple just add div tag to post in page. I think that this is in single.php file somwhere below, so I add div id=”10″ which is the id of post I want to put div, in div id=”primary” and class=”naslov” for image in it, image is less important, div is main problem?!

    [code moderated – please read and follow the forum guidelines for posting code]

    You might put the div in the post itself.
    Use the html tab to edit the post.

    <div style=”background-image:url(‘myimages/myimage.jpg’); padding:10px 10px;”>
    …….. content of the post ………

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add div’ is closed to new replies.