Remove "Review" Option from Events

This topic contains 8 replies, has 2 voices, and was last updated by  Paolo 8 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #116535

    luxman
    Free User
    Post count: 38

    I searched the forum and have the following:

    In functions.php:

    function default_comments_off( $data, $postarr ) {
    if( $data[‘post_type’] == ‘gd_event’) {
    if( !($postarr[‘ID’]) ){
    $data[‘comment_status’] = 0; //0 = false | 1 = true
    }
    }
    return $data;
    }
    add_filter( ‘wp_insert_post_data’, ‘default_comments_off’, ”, 2);

    In Style.css:

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

    But, the reviews tab still appears within the event listing. Is there a child-theme setting I can use to overwrite/remove that tab? or do I have to edit the events plugin itself? thanks!

    #116568

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #116656

    luxman
    Free User
    Post count: 38

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #117195

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #117203

    luxman
    Free User
    Post count: 38

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #117205

    luxman
    Free User
    Post count: 38

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #117207

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #117240

    luxman
    Free User
    Post count: 38

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #117241

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

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

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

Open Support Ticket