WordPress.org

Ready to get started?Download WordPress

Forums

How to add div (4 posts)

  1. blyster
    Member
    Posted 2 years ago #

    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?
    Thanx?

  2. WPyogi
    Volunteer Moderator
    Posted 2 years ago #

    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.

  3. blyster
    Member
    Posted 2 years ago #

    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]

  4. Threecows
    Member
    Posted 2 years ago #

    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 .........
    </div>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags