Map Bubble / infowindow Link _blank

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

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

Open Support Ticket
  • Author
    Posts
  • #120574

    Frank Zwecker
    Buyer
    Post count: 10

    If you click on the title of a map bubble you normally get to the place description that opens in the same window.

    Would there be a css-script available to show the description in a new window?

    This would be helpful, because if you close that new window you get back to the map with the same zoom level and part of the map.

    #120605

    Guust
    Moderator
    Post count: 29970

    You want the target of that link to open a new window. Let’s ask Paolo, he might have a solution.

    #120856

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    please try to copy this function in your theme functions.php file: https://gist.github.com/Stiofan/55b0d1e06b930bad5f6c

    Let us know how you went,

    Thanks

    #121187

    Frank Zwecker
    Buyer
    Post count: 10
    This reply has been marked as private.
    #121407

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    I’ve just tested this snippet and it works:

    
    
    function my_infowindow_blank($html, $postinfo_obj, $post_preview){
      
        if (isset($postinfo_obj->post_id)) {
            $html = str_replace("<a","<a target='_blank' ",$html);
        }
    return $html;
    }

    If you provide wp admin credentials I’ll check if you are adding it correctly.

    Let us know,

    Thanks

    #121501

    Frank Zwecker
    Buyer
    Post count: 10
    This reply has been marked as private.
    #121511

    Paolo
    Site Admin
    Post count: 31206

    Correct, only our staff (and you) will be able to read them.

    Thanks

    #121537

    Frank Zwecker
    Buyer
    Post count: 10
    This reply has been marked as private.
    #121777

    Paolo
    Site Admin
    Post count: 31206

    HI,

    you forgot to add the add_filter call:

    add_filter('geodir_custom_infowindow_html','my_infowindow_blank',10,3);

    Without that the function alone is useless.

    Thanks

    #121809

    Frank Zwecker
    Buyer
    Post count: 10

    Hi Paolo,

    thanks so much. You are great 🙂

    What is the reason the star-rating is missing in the bubble now? If you had a solution for that, I would be happy.

    Thanks again.

    Frank

    #121813

    Paolo
    Site Admin
    Post count: 31206

    They are there, just very light if no review has been left yet.

    See image attached.

    Thanks

    #122007

    Frank Zwecker
    Buyer
    Post count: 10

    OK, thanks.

    But they disappear when the map is in full window size…

    #124005

    Frank Zwecker
    Buyer
    Post count: 10

    Hi Paolo,

    any idea why the ratings disappear in full window size map?

    Thanks,
    Frank

    #124313

    Paolo
    Site Admin
    Post count: 31206

    Hi Frank,

    sorry or the late reply. It appears to be a css bug. I’ve asked to the developers to rectify it.

    We’ll let you know as soon as it is fixed.

    Thanks

    #124315

    Paolo
    Site Admin
    Post count: 31206

    p.s. you should be able to momentarely fix this adding this in GD > Design > Scripts > Custom CSS

    
    
    .body_fullscreen .geodir-bubble_desc .geodir_Star {
        display: block;
    }

    Let us know,

    Thanks

Viewing 15 posts - 1 through 15 (of 17 total)

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

Open Support Ticket