Anker link '#respond' for what?

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

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

Open Support Ticket
  • Author
    Posts
  • #197856

    Mario
    Expired Member
    Post count: 58

    What exactly should the anker-link ‘#respond’ in ‘no review’ links do? Shouldn´t it be ‘#reviews’ and jump to the review-tab directly?

    #198073

    Paolo
    Site Admin
    Post count: 31206

    Hi Mario,

    that looks like an oversight.

    It should be #reviews.

    I asked to the developers to fix it.

    Thanks for spotting it.

    #198543

    Giri
    Expired Member
    Post count: 3155

    Mario, That #respond part is generated by wordpress.

    I have modified those links to point to #reviews instead of #respond if its a GD post type.

    Thanks

    It will be available in the next version.

    You can also place this code in your child theme if this is urgent.

    
    
    add_filter('get_comments_link', 'mario_gd_get_comments_link', 10, 2);
    function mario_gd_get_comments_link($comments_link, $post_id) {
        $post_type = get_post_type($post_id);
    
        $all_postypes = geodir_get_posttypes();
        if (in_array($post_type, $all_postypes)) {
            $comments_link = str_replace('#comments', '#reviews', $comments_link);
            $comments_link = str_replace('#respond', '#reviews', $comments_link);
        }
    
        return $comments_link;
    }
    
    #198599

    Paolo
    Site Admin
    Post count: 31206

    Thanks Giri

    #198802

    Mario
    Expired Member
    Post count: 58

    Brilliant. Thank you very much.

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

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

Open Support Ticket