Support » Themes and Templates » Put entry_meta and 'leave a comment' in the same line

  • Resolved pfdanem

    (@pfdanem)


    Hello – twentytwelve child here.

    I would like the entry meta to be in the same line with the ‘leave a comment’ sentence.

    Currently it is:
    Article written by author and posted in category.
    Leave a reply

    and I would like it to be:
    Article written by author and posted in category. Leave a reply

    Here is the code to the footer part of content.php:

    <footer class="entry-meta">
                            <?php twentytwelve_entry_meta(); ?>
    			<?php if ( comments_open() ) : ?>
    					<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
    			<?php endif; // comments_open() ?> 
    
    			<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
    
    		</footer><!-- .entry-meta -->
    	</article><!-- #post -->

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

    (@aymanalzarrad)

    Try with CSS without modifying your code.
    If you don’t manage than wrap the
    <?php twentytwelve_entry_meta(); ?>
    with a div and give it a class and do the same thing to
    <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>

    would you be able to give additional guidance as to what to do with the css?

    Thank you Ayman; figured out the CSS as well as the code.

    Cheers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Put entry_meta and 'leave a comment' in the same line’ is closed to new replies.