Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17156

    Hi,

    for some special posts (not for all!) I have closed the comments.

    But at these special posts, the text is shown at the left, that the visitor should leave a feedback – hard for me to describe in English … here a screenshot of what I mean:

    How can I get rid of this part of code ONLY on those posts, where the comments are CLOSED?

    Thanks!

    #94377

    Hi colorit2,

    Can you post a link to your site? (the one in the screenshot).

    Regards,

    Ismael

    #94378

    it’s just offline, sorry, I can’t go online for the moment …, but you can test this in the CORONA demo theme as well.

    In my screenshot above it is just translated into German.

    But here it is the part within CORONA demo:

    http://www.kriesi.at/themes/corona/2011/03/31/this-is-a-nice-post/

    #94379

    Open up includes/comments.php and replace following code:

    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>";
    }

    #94380

    works like a charm, thank you very much, Dude!

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Comments are closed on certain posts: however code appears to leave feedback’ is closed to new replies.