Hello,
When searching through many listings and comparing places, it can be nice to have results open in a new tab (think Amazon)
I would like this behavior for my search results (see link at bottom for example), so, I added the following code to the script in the footer:
<script>
jQuery(document).ready(function() {
jQuery('body.search-results .gd-post-gd_hotel a').attr('target', '_blank');
setTimeout(function (){
jQuery('body.search-results .geodir-bubble_desc h4 a').attr('target', '_blank');
}, 4000);
</script>
The first part adds the attribute to the listings in the grid perfectly and they open in a new tab.
I want to add the same attribute to the Bubbles on the map: when you click the marker, the description bubble comes up, I want that link to open in a new tab as well.
It seemed that even though the DOM was ready, the map bubbles weren’t created yet, so I added a 4 second delay. But it seems hit at miss…
Is there another way to do this?
Here is an example of a search:
Hotels in Kyoto
Thanks in advance!