Remove/Disable Reviews on certain CPT

This topic contains 11 replies, has 3 voices, and was last updated by  Guust 7 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #342350

    Jamie Hagon
    Lifetime Member
    Post count: 115

    Hi,

    I would like to be able to remove/disable reviews on certain custom post types as I have created a post type that allows members to post items for sale and the review section/listings page on the this post type are not needed. I have other post types that need reviews so I don’t want to disable them completely. Any suggestions?

    Thanks

    #342357

    Guust
    Moderator
    Post count: 29970
    #342361

    Jamie Hagon
    Lifetime Member
    Post count: 115
    This reply has been marked as private.
    #342362

    Kor
    Moderator
    Post count: 16516

    Hi Jamie,

    Could you try using the custom CSS code below and see if it works for you? Insert into GD > Design > Scripts > Custom Style CSS

    
    
    .gd-post-gd_used_firearms .gd-star-rating, 
    .gd-post-gd_used_firearms .geodir-pcomments {
        display:none!important;
    }

    Thanks!

    #342363

    Jamie Hagon
    Lifetime Member
    Post count: 115

    Worked great for the listing page but on the detailed page still shows tab for reviews. I looked around again and could not find anyway to turn that off. I think there is a way correct?

    Thanks
    Jamie

    #342365

    Guust
    Moderator
    Post count: 29970

    In the link I posted there was this code:

    
    
    .single-gd_project_proposal dl.geodir-tab-head [data-tab=”#reviews”] {
    display:none;
    }

    so in your case that would be

    
    
    .single-gd_used_firearms dl.geodir-tab-head [data-tab=”#reviews”] {
    display:none;
    }
    #342366

    Jamie Hagon
    Lifetime Member
    Post count: 115

    Sorry but that did not work, still shows the review tab on the detailed pages. Also the categories in the Used Firearms cpt still show the reviews on the listings.

    #342369

    Guust
    Moderator
    Post count: 29970

    WP admin details please and please tell us where you added the CSS.
    Together with URLs of the pages where you still see the reviews on the listings after you used CTRL + F5 to reload the page.
    Thanks

    #342372

    Jamie Hagon
    Lifetime Member
    Post count: 115
    This reply has been marked as private.
    #342375

    Guust
    Moderator
    Post count: 29970

    I added it to GD > Design > Scripts and corrected the curly quotes.
    Because you are on a GoDaddy server, the flushing does not always work: https://wpgeodirectory.com/docs/server-requirements/#wp

    Please check now.

    #342379

    Jamie Hagon
    Lifetime Member
    Post count: 115

    Looks great thanks! Not on a godaddy server anymore on dedicated with hostgator. But whatever you changed worked great. Thanks again for your help as always great support!

    #342386

    Guust
    Moderator
    Post count: 29970

    You’re welcome 🙂

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket