Hi!
I inserted the required code to enable comments both on pages and posts.
Now I'd love to get rid of the "Comments are closed" messages that appear when comments are closed.
Cheers
Alex
Hi!
I inserted the required code to enable comments both on pages and posts.
Now I'd love to get rid of the "Comments are closed" messages that appear when comments are closed.
Cheers
Alex
Hey,
in includes/comments.php delete following code:
if ( ! comments_open() ) :
?>
<p><?php _e( 'Comments are closed.', 'avia_framework' ); ?></p>
<?php
endif; // end ! comments_open()Did that and got
Parse error: syntax error, unexpected '<' in /wp-content/themes/corona/includes/comments.php on line 87
I'm sorry - I missed the php closing tag. Just remove the code and don't add <?php
Much better, thank you.
But I still have
LEAVE A REPLY
Want to join the discussion?
Feel free to contribute!
on the bottom of the page. Any way to remove this one as well?
Please replace:
echo "<div class='comment_meta_container'>";
echo "<h3 class='miniheading'>".__('Leave a Reply','avia_framework')."</h3>";
echo "<span class='minitext'>".__('Want to join the discussion? <br/>Feel free to contribute!','avia_framework')."</span>";
echo "</div>";
echo "<div class='comment_container'>";
comment_form();
echo "</div>";
with:
if ( comments_open() ) {
echo "<div class='comment_meta_container'>";
echo "<h3 class='miniheading'>".__('Leave a Reply','avia_framework')."</h3>";
echo "<span class='minitext'>".__('Want to join the discussion? <br/>Feel free to contribute!','avia_framework')."</span>";
echo "</div>";
echo "<div class='comment_container'>";
comment_form();
echo "</div>";
}Thank you so very much! Problem solved!
Glad that I could help you :)
You must log in to post.