• hello,I am running medow lilly theme on my blog https://www.aryasjourney.com,i having some problems including the comment box does not shows up at the end of the post,I have enable comments in the posts.how do I solve this ? here is comments.php code
    `<?php
    // Do not delete these lines
    if (!empty($_SERVER[‘SCRIPT_FILENAME’]) && ‘comments.php’ == basename($_SERVER[‘SCRIPT_FILENAME’]))
    die (theme_locals(“please_do_not”));
    if ( post_password_required() ) { ?>
    <?php echo ‘<p class=”nocomments”>’ . theme_locals(“password”) . ‘</p>’; ?>
    <div class=”comment-line”></div>
    <?php
    return;
    }
    ?>
    <!– BEGIN Comments –>
    <?php if ( have_comments() ) : ?>
    <div id=”comments” class=”comment-holder”>
    <h3 class=”comments-h”><?php printf( _n( theme_locals(“response”), theme_locals(“responses”), get_comments_number(), CURRENT_THEME ),
    number_format_i18n( get_comments_number() ), ” );?></h3>
    <div class=”comment-line”></div>
    <div class=”pagination”>
    <?php paginate_comments_links(‘prev_text=Prev&next_text=Next’); ?>
    </div>
    <ol class=”comment-list clearfix”>
    <?php wp_list_comments(‘type=all&callback=mytheme_comment’); ?>

    <div class=”pagination”>
    <?php paginate_comments_links(‘prev_text=Prev&next_text=Next’); ?>
    </div>
    </div>
    <?php else : // this is displayed if there are no comments so far ?>
    <?php if ( comments_open() ) : ?>
    <!– If comments are open, but there are no comments. –>
    <?php else : // comments are closed ?>
    <!– If comments are closed. –>
    <?php echo ‘<p class=”nocomments”>’ . theme_locals(“comments_are_closed”) . ‘</p>’; ?>
    <div class=”comment-line”></div>
    <?php endif; ?>

    <?php endif; ?>

    <?php if ( comments_open() ) : ?>
    <div class=”comment-line”></div>
    <div id=”respond”>
    <div class=”cancel-comment-reply”>
    <h3><?php comment_form_title(theme_locals(“leave_a_reply”)); ?></h3>
    <small><?php cancel_comment_reply_link(); ?></small>
    </div>
    <?php if ( get_option(‘comment_registration’) && !is_user_logged_in() ) : ?>
    <p><?php echo theme_locals(“you_must_be”); ?> “><?php echo theme_locals(“logged_in”); ?> <?php echo theme_locals(“post_a_comment”); ?></p>
    <?php else : ?>
    <form action=”<?php echo get_option(‘siteurl’); ?>/wp-comments-post.php” method=”post” id=”commentform”>
    <?php if ( is_user_logged_in() ) : ?>
    <p><?php echo theme_locals(“logged_in_as”); ?> /wp-admin/profile.php”><?php echo $user_identity; ?>. ” title=”<?php echo theme_locals(“log_account”); ?>”><?php echo theme_locals(“log_out”); ?></p>
    <?php else : ?>
    <p class=”field”><input type=”text” name=”author” id=”author” value=”<?php echo theme_locals(“name_comment”); ?><?php if ($req) echo ‘*’; ?>” onfocus=”if(this.value=='<?php echo theme_locals(“name_comment”); ?><?php if ($req) echo ‘*’; ?>’){this.value=”}” onblur=”if(this.value==”){this.value='<?php echo theme_locals(“name_comment”); ?><?php if ($req) echo ‘*’; ?>’}” size=”22″ tabindex=”1″ <?php if ($req) echo “aria-required=’true'”; ?> /></p>
    <p class=”field”><input type=”text” name=”email” id=”email” value=”<?php echo theme_locals(“email_comment”); ?><?php if ($req) echo ‘*’; ?>” onfocus=”if(this.value=='<?php echo theme_locals(“email_comment”); ?><?php if ($req) echo ‘*’; ?>’){this.value=”}” onblur=”if(this.value==”){this.value='<?php echo theme_locals(“email_comment”); ?><?php if ($req) echo ‘*’; ?>’}” size=”22″ tabindex=”2″ <?php if ($req) echo “aria-required=’true'”; ?> /></p>
    <p class=”field”><input type=”text” name=”url” id=”url” value=”<?php echo theme_locals(“website_comment”); ?>” onfocus=”if(this.value=='<?php echo theme_locals(“website_comment”); ?>’){this.value=”}” onblur=”if(this.value==”){this.value='<?php echo theme_locals(“website_comment”); ?>’}” size=”22″ tabindex=”3″ /></p>
    <?php endif; ?>
    <!– <p>You may use these <abbr title=”HyperText Markup Language”>HTML</abbr> tags and attributes: <?php echo allowed_tags(); ?></small></p> –>
    <p><textarea name=”comment” id=”comment” cols=”58″ rows=”10″ tabindex=”4″ onfocus=”if(this.value=='<?php echo theme_locals(“your_comment”); ?>’){this.value=”}” onblur=”if(this.value==”){this.value='<?php echo theme_locals(“your_comment”); ?>’}”><?php echo theme_locals(“your_comment”); ?></textarea></p>
    <p><input name=”submit” type=”submit” class=”btn btn-primary” id=”submit” tabindex=”5″ value=”<?php echo theme_locals(“submit_comment”); ?>” />
    <?php comment_id_fields(); ?>
    </p>
    <?php do_action(‘comment_form’, $post->ID); ?>
    </form>
    <?php endif; // If registration required and not logged in ?>
    </div>
    <!– END Comments –>
    <?php endif; ?>

Viewing 1 replies (of 1 total)
  • As this is a commercial theme, this would be something to ask the theme developers about. The support login is here, but if you bought it elsewhere please post your question at that site. And good luck!

Viewing 1 replies (of 1 total)
  • The topic ‘comments box does not shows up’ is closed to new replies.