At some point the comments link started showing up on the single pages, doubled up with the actual comments and discussion count. Not sure what the original code was here but I added is_single() exclusions.
This commit is contained in:
parent
25096759b0
commit
1970d387c3
|
@ -64,7 +64,7 @@ function display_blog_post() {
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php
|
<?php
|
||||||
if ('open' == $post->comment_status) {
|
if ('open' == $post->comment_status) {
|
||||||
if (comicpress_check_child_file('partials/commentlink') == false) { ?>
|
if (comicpress_check_child_file('partials/commentlink') == false && !(is_single())) { ?>
|
||||||
<div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty"> </span> '.__('Comments ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress')); ?></div>
|
<div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty"> </span> '.__('Comments ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress')); ?></div>
|
||||||
<?php }
|
<?php }
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,7 +66,7 @@ function display_comic_post() {
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php
|
<?php
|
||||||
if ('open' == $post->comment_status && !$comicpress_options['static_blog']) {
|
if ('open' == $post->comment_status && !$comicpress_options['static_blog'] && !(is_single())) {
|
||||||
if (comicpress_check_child_file('partials/commentlink') == false) { ?>
|
if (comicpress_check_child_file('partials/commentlink') == false) { ?>
|
||||||
<div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty"> </span> '.__('Comments ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress')); ?></div>
|
<div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty"> </span> '.__('Comments ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress')); ?></div>
|
||||||
<?php }
|
<?php }
|
||||||
|
|
Loading…
Reference in New Issue