Open listing details in new tab when click on bubble description

This topic contains 2 replies, has 2 voices, and was last updated by  adyp 6 years, 11 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #382959

    adyp
    Expired Member
    Post count: 496

    Hello,

    is it possible to have the listing details open in a new browser tab when clicking on bubble description – so as to preserve the map as it is zoomed in? Currently, if I zoom in to an area on the map with several listings, click on one bubble title to see the listing and then want to check out another listing, I have to go back on browser. This not only takes more time for the map to re-load, but then it is not zoomed in correctly. This all adds time and extreme frustration to the user experience.

    It would be great if clicking on the bubble description opened the listing detail in a new browser tab – then several listings can be opened for comparison and there is no frustration in trying to get back to the same zoom/area of the map.

    Maybe there is a setting for this, but if so I haven’t found it. This is something that has come up as a significant issue in user-experience testing.

    Thanks

    #382998

    Kor
    Moderator
    Post count: 16516

    Hi adyp,

    Please try inserting the custom PHP code into the code snippets plugin and see if 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;
    }
    add_filter('geodir_custom_infowindow_html','my_infowindow_blank',10,3);
    #383008

    adyp
    Expired Member
    Post count: 496

    Hi Kor,

    that’s just the job!

    Many thanks,
    Adrian

    (and thanks for pointing out Code Snippets plugin – I didn’t have it installed, but do now)

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

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

Open Support Ticket