Viewing 6 replies - 1 through 6 (of 6 total)
  • You probably need to put the postdate div inside the entry-header div:

    <header class="entry-header">
        <div class="postdate">
        <h1 class="entry-title">

    and then use CSS to fine-tune the position, perhaps useing float: left;.

    Thread Starter Ceebe

    (@ceebe)

    Thanks WP yogi, but this doesn’t work; I lost the date completely. It looks like this now:

    <header class="entry-header">
    <div class="postdate">
    <div class="postday"><?php the_time('d'); ?></div>
    <div class="postmonth"><?php the_time('F'); ?></div>
    <div class="postyear"><?php the_time('Y'); ?></div>
    </div>
    <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
    </header><!-- .entry-header -->

    Looks the same to me — ?? I don’t see what you posted above.

    Thread Starter Ceebe

    (@ceebe)

    I just wanted to make sure I did the right thing.
    Do you have any other suggestions?

    You’re not going to be able to align those unless the post date section is inside the article div. If you tried that and it stopped showing up, there was likely a code problem. If you post the template code in a pastebin so someone can look at the php code, that might be helpful.

    Thread Starter Ceebe

    (@ceebe)

    Okay, thanks yogi, for your reply. Will try that.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Align postdate and posttitle’ is closed to new replies.