Geodirectory GD > Directions to Map Bubble.

This topic contains 6 replies, has 3 voices, and was last updated by  Stiofan O’Connor 5 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #519272

    snowbikenation
    Expired Member
    Post count: 2

    Hi

    Can you give me a code snippet that will display the GD > Directions to Map Bubble or is there any way to make it possible without coding. 🙂

    Thanks

    #519273

    Guust
    Moderator
    Post count: 29970

    I’ll get the developers to have a look at your question, in case there is a simple solution for that.
    Thanks

    #519284

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    There is two ways to do this:

    1. Move the template /templates/map-bubble.php to your child theme under /geodirectory/ folder and you can add / change anything u want.

    2. Code snippet:

    add_filter('geodir_show_listing_info','add_directions_in_map_bubble',10,2);
    function add_directions_in_map_bubble($html,$fields_location){
    
    	if($fields_location=='mapbubble'){
    		$html = do_shortcode("[gd_post_directions]").$html;
    	}
    	
    	return $html;
    }

    Thanks,

    Stiofan

    #520762

    snowbikenation
    Expired Member
    Post count: 2

    Hi

    Thanks. It worked 🙂

    Now, I want to make the Get Directions on the middle of phone number and website. Please see attached screenshot. Is there an additional snippet for that? :)…

    Thanks again. 🙂

    #520777

    Guust
    Moderator
    Post count: 29970

    At Places > Settings > Custom fields, move the “Get Directions” field below the “Website” field.

    Thanks

    #520916

    snowbikenation
    Expired Member
    Post count: 2

    Hi

    There is no “Get Directions” on custom field. Get Directions is a code snippet on map bubble.Is there any additional snippet for that?

    Thanks 🙂

    #520982

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    There is no easy way to do that without copying the template to your theme and doing it manually.

    Stiofan

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount