Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter elanzap

    (@elanzap)

    Awesome…worked like charm. Thank you very much alchymyth. If I can rate you, I will give you five stars.

    Thread Starter elanzap

    (@elanzap)

    I guess you are talking about this code. What changes do I have to do here?

    <?php get_header(); ?>
    
    	<!-- Middle Starts -->
    	<div id="middle-out-top">
    	<div id="middle-out-bottom">
    	<div id="middle-content" <?php if ( comments_open() ) : ?>class="single"<?php endif; ?>>
    	<div id="middle-content-bottom">
    		<!-- Content Starts -->
    		<div id="content" class="wrap">
    			<div class="col-left">
    				<div id="main-content">
    
    				<?php if (have_posts()) : ?>
    				<?php while (have_posts()) : the_post(); ?>
    
    				<!-- Sing Post Starts -->
    					<div class="page post wrap">
    
    						<h1 class="title"><?php the_title(); ?></h1>
    
    						<?php the_content(); ?>
    						<?php edit_post_link('Edit Page', '', ''); ?>
    
    					</div>
    						<!-- Sing Post Ends -->
    
    				</div>
    
    				<?php endwhile; ?>
    
    				<div id="comments">
    
    					<?php //comments_template(); ?>
    
    				</div>
    
    				<?php endif; ?>
    
    			</div>
    
    			<div class="col-right">
    				<?php get_sidebar(); ?>
    			</div>
    		</div>
    		<!-- Content Ends -->
    	</div>
    	</div>
    	</div>
    	</div>
    	<!-- Middle Ends -->
    	<?php get_footer(); ?>

    [please mark any posted code – https://codex.www.ads-software.com/Forum_Welcome#Posting_Code ]

    Thread Starter elanzap

    (@elanzap)

    Thanks again. My theme doesn’t have “comments.php”. It only has “theme-comments.php” that I posted above. Maybe I should contact woo themes.

    Thread Starter elanzap

    (@elanzap)

    Thank you alchymyth for trying to help me. I did check allow comments to all the pages, but, it didn’t work. I am posting my theme-comments.php code here. If you can figure out something, please let me know.

    <?php
    // Fist full of comments
    function custom_comment($comment, $args, $depth) {
    $GLOBALS[‘comment’] = $comment; ?>

    <li class=”comment wrap” id=”comment-<?php comment_ID() ?>”>

    <div class=”col-left”>
    <div class=”inside”>
    <?php if ($args[‘avatar_size’] != 0) echo get_avatar( $comment, $args[‘avatar_size’] ); ?>
    <p><?php comment_author_link() ?>
    </p>
    <p><small><?php comment_date(‘d. M, Y’); ?></small></p>
    </div>
    </div>
    <div class=”col-right”>
    <?php comment_text() ?>
    <?php if ($comment->comment_approved == ‘0’) : ?>
    <p>Your comment is awaiting moderation.</p>
    <?php endif; ?>
    </div>

    <?php echo comment_reply_link(array(‘before’ => ‘<span class=”reply”>’, ‘after’ => ‘</span>’, ‘reply_text’ => ‘Reply to this comment’, ‘depth’ => $depth, ‘max_depth’ => $args[‘max_depth’] )); ?>

    <div class=”fix”></div>

    <?php
    }

    // PINGBACK / TRACKBACK OUTPUT
    function list_pings($comment, $args, $depth) {

    $GLOBALS[‘comment’] = $comment; ?>

    <li id=”comment-<?php comment_ID(); ?>”>
    <span class=”author”><?php comment_author_link(); ?></span> –
    <span class=”date”><?php echo get_comment_date(get_option(‘date_format’)) ?></span>
    <span class=”pingcontent”><?php comment_text() ?></span>

    <?php
    }

    function the_commenter_link() {
    $commenter = get_comment_author_link();
    if ( ereg( ‘]* class=[^>]+>’, $commenter ) ) {$commenter = ereg_replace( ‘(]* class=[\'”]?)’, ‘\\1url ‘ , $commenter );
    } else { $commenter = ereg_replace( ‘(<a )/’, ‘\\1class=”url “‘ , $commenter );}
    echo $commenter ;
    }

    function the_commenter_avatar() {
    $email = get_comment_author_email();
    $avatar = str_replace( “class=’avatar”, “class=’photo avatar”, get_avatar( “$email”, “32” ) );
    echo $avatar;
    }

    ?>

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