• Resolved sweet peas

    (@willsheloveparis)


    Hi all

    I’m using childtheme of twenty eleven and I need some css help on how to move ‘posted on’ dates to go underneath my posts, so it is located alongside the ‘posted in’ and ‘leave a reply’ link. Please help me on how to do this.
    This is my homepage

    TIA

Viewing 5 replies - 1 through 5 (of 5 total)
  • I need some css help on how to move ‘posted on’ dates to go underneath my posts

    You won’t be able to do that with just CSS. You’ll need to start creating custom template files.

    Thread Starter sweet peas

    (@willsheloveparis)

    oh ic. So does this mean I have to copy php files from the 2011 parent theme?

    Initially yes. Then you start editing those files in the child theme to get the layout that you want. Start with content.php. In the child’s version, locate:

    <?php if ( 'post' == get_post_type() ) : ?>
    <div class="entry-meta">
    <?php twentyeleven_posted_on(); ?>
    </div><!-- .entry-meta -->
    <?php endif; ?>

    and remove it. Then find:

    <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
    <?php endif; // End if comments_open() ?>

    and add:

    <?php if ( 'post' == get_post_type() ) : ?>
    <span class="sep"> | </span>
    <?php twentyeleven_posted_on(); ?>
    <?php endif; ?>

    immediately after that.

    Thread Starter sweet peas

    (@willsheloveparis)

    Thanks so much Esmi. I will go do that right now and keep you updated ??

    Thread Starter sweet peas

    (@willsheloveparis)

    Hi Esmi, sorry it took me so long to get back. I did according to your instructions but it doesn’t seem to change anything. Do you know of another solution?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘how to move date to bottom of post Twenty Eleven’ is closed to new replies.