This topic has 6 replies, 2 voices, and was last updated 7 years by Radu.

  • Author
  • #154538
     kvento
    Participant

    I unchecked allow comments in settings, and I made sure comments weren’t allowed on each listing. “0 comments” is still showing on the listings pages, and the “Comments” box in each listing. How do I get rid of this?

    Thank you!

    #154616
     Radu
    Moderator

    Hi,

    You will have to cpy comments.php file from wp-content/themes/kleo/comments.php to wp-content/themes/kleo-child/

    then you should add the red marked code

    COPY CODE
    
    
    <?php if (!is_singular( 'your_cpt' ) ) { ?>
    
    
    <?php } ?>
    
    

    Replace your_cpt with your cpt slug

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #154623
     kvento
    Participant

    I have multiple cpt’s – how would that work if I don’t want comments in any? Thank you!

    #154635
     Radu
    Moderator

    Hi,
    After you copy file in child delete the green marked content

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #154641
     kvento
    Participant

    I did this, and it’s not working:

    <?php } else { ?>
    < ?php if (!is_singular( ‘gd_place’ ) ) { ?>

    < ?php } ?>

    Also, I have multiple CPTs, so would I just put them in after? Like so?<?php } else { ?>
    < ?php if (!is_singular( ‘gd_place’ ) ) { ?>
    < ?php if (!is_singular( ‘gd_breeders’ ) ) { ?>
    < ?php if (!is_singular( ‘gd_events’ ) ) { ?>
    < ?php } ?>

    #154642
     kvento
    Participant

    comments box shown below:

    Attachments:
    You must be logged in to view attached files.
    #154676
     Radu
    Moderator

    Hi again,

    That section with tabs it’s part of geodirectory and according to the geodirectory that tab can be removed using this setting

    https://wpgeodirectory.com/support/topic/how-to-remove-the-reviews-tab/

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?