• I am having issues with my comments being all wonky. Avatars are not being placed in the right area and I believe this is messing with everything. The designer is no longer offering support and though I have a decent knowledge of HTML/CSS this is really stumping me as I have never had to edit the comments before. Any help much appreciated!

    Theme: More+
    Wordpress: Latest
    Screencap of Problem: https://postimage.org/image/dlk4xo6pp/
    Link to example: https://www.whatthetech.info/tutorials/hackintosh-case-badges/

    Comments Template Code:

    <?php
    /*-----------------------------------------------------------------------------------
    
    	Comments template 
    
    -----------------------------------------------------------------------------------*/
    
    function theme_comments($comment, $args, $depth) {
    $GLOBALS['comment'] = $comment; ?>
    
    <article <?php comment_class('group'); ?> id="comment-<?php comment_ID(); ?>">
     <header class="comment-author vcard">
    		<?php echo get_avatar($comment,$size='38',$default='<path_to_url>' ); ?>
        <?php printf(__('<span class="fn">%s</span>'), get_comment_author_link()) ?>
        <span class="time"><?php printf(__('%1$s'), get_comment_date(' M d, Y')) ?></span>
      </header>
      <div class="comment-text">
    	<?php if ($comment->comment_approved == '0') : ?>
              <em><?php _e('Your comment is awaiting moderation.') ?></em>
              <br /><br />
        <?php endif; ?>
    
        <?php comment_text() ?>
    
        <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
        <?php edit_comment_link(__('(Edit)'),'  ','') ?>
     </div>
    </article>
    <?php
    }
    ?>

    Page Template Code:

    <?php
    /* Template Name: Full width Page */
    ?>
    
    <?php get_header(); ?>
     <div class="container" style="margin-bottom:50px;">
            <div class="row">
            	<div class="span12">
                <div class="welcome">
                <?php
    				$page_name = trim( wp_title( '', false ) );
    				$page = get_page_by_title( $page_name );
    			?>
                <h1><span class="colored"><?php echo trim( wp_title( '', false ) ); ?></span><span class="grey_colored"> / <?php echo get_post_meta( $page->ID, 'page_subtitle', true ); ?></span></h1>
                <div class="divider"></div>
                </div>
                </div>
            </div>
    
        	<div class="row">
            	<div class="span12">
    
               <?php if ( have_posts() ) : ?>
    
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<!-- content -->
    					<?php the_content(); ?>
    					<div id="comments" class="box2">
        <?php comments_template(); ?>
    </div>
    					<!-- end content -->
    				<?php endwhile; ?>
    
    			<?php endif; ?>
            </div>
        </div></div>
    
    	<?php get_footer(); ?>

  • The topic ‘Comment spacing all messed up!’ is closed to new replies.