WordPress.org

Support

Support » Themes and Templates » Positioning post title “inside post” !?

Positioning post title “inside post” !?

Viewing 2 replies - 1 through 2 (of 2 total)
  • if you find out, plz let me know. want to do it as well but with
    <?php the_title(); ?> it can’t be achieved

    want to do it as well but with
    <?php the_title(); ?> it can’t be achieved

    Absolutely it can. It’s just a matter of CSS. If I used the default theme files as an example, the output would be:

    <div class="post">
    <h2>post title here</h2>
    <small> date here</small>
    <div class="entry">
    stuff here
    </div>
    <p class="postmetadata">more stuff here
    
    </div>

    That’s your basic output. If you change it slightly by placing a div around the <h2> and <small> tags, and then placing that *inside* of the entry div, you just give it a width and float it left. Done.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Positioning post title “inside post” !?’ is closed to new replies.
Skip to toolbar