Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2953

    Hi,

    I tried to find the code which shows the messages ‘Comments are closed’ or other messages for the portfolio items.

    As I am not going to use the comments functionality on the portfolio.

    #40005

    Hey,

    replace following code in single.php:

    <span class="comments"><?php comments_popup_link(__('No Comments','avisio'), __('1 Comment','avisio'), __('% Comments','avisio')); ?></span>

    with:

    <?php if( get_post_type() != 'portfolio' ) {?>
    <span class="comments"><?php comments_popup_link(__('No Comments','avisio'), __('1 Comment','avisio'), __('% Comments','avisio')); ?></span>
    <?php } ?>

    #40006

    Hi dude,

    I cannot find the code in the single.php:

    <!-- If comments are closed. -->
    <span class="meta"><?php _e('Comments are closed.','avisio'); ?></span>

    The goal is to remove the message ‘Comments are closed or 1 Comment etc…

    #40007

    Hey,

    I’m sorry, I used the wrong theme :) – I updated the instructions above…

    #40008

    hi dude,

    Yes that’s just perfect … thanks again for your quick support!

    #40009

    Glad that I could help you :)

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

The topic ‘Removing Comments on Portfolio items’ is closed to new replies.