Map Center and Social Badge

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

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #458235

    Alex Nott
    Expired Member
    Post count: 107

    Loving V2!

    1.

    I wonder if I can set the map center when using a shortcode? I have a very local map and need the map focused on the center of a small small area, but still have to include some outlying places. The outliers are throwing the focused center of the map way off center from where it should be, as well as throwing off the zoom. I saw this

    2.

    I tried to make a badge with the facebook field URL as the link %%item%% but it is showing “facebook” instead of my icon. Same for Website showing “Website” instead of the icon. I am using Supreme. Should this work?

    #458236

    Alex Nott
    Expired Member
    Post count: 107
    This reply has been marked as private.
    #458238

    Alex Rollin
    Moderator
    Post count: 27815

    HTML is allowed, let me flag this for the developers about the help icons using FA JS 5.5, and the field values for %%item%%.

    #458240

    Alex Nott
    Expired Member
    Post count: 107
    This reply has been marked as private.
    #458296

    Kiran
    Moderator
    Post count: 7069

    Hello,

    Badges

    Please use following badges. You two things incorrect. 1) use single quote to wrap shortcode parameter with html tags. 2) use %%input%% not %%item%%

    
    
    [gd_post_badge key="facebook" condition="is_not_empty" badge='<i class="fab fa-facebook-square"></i>' link="%%input%%" bg_color="#ffffff" txt_color="#0000a0"]
    [gd_post_badge key="website" condition="is_not_empty" badge='<i class="fas fa-link"></i>' link="%%input%%" bg_color="#ffffff" txt_color="#0000a0"]

    Adjust map center

    Currently not possible to adjust map center via shortcode. On map map_canvas is gd_map_canvas_directory. In page view source search “map_canvas”: to find map_canvas used by map.

    The “X” to open and close the map from fullscreen does not work when the map is made with a shortcode. It doesn’t work on the Front page, or on the page above.

    Please try after clearing browser cache.

    Thanks,
    Kiran

    #458351

    Alex Nott
    Expired Member
    Post count: 107

    Thank you

    #458403

    Alex Nott
    Expired Member
    Post count: 107

    How can I set the links to open a new tab like

    
    
    
    a target="_blank"
    
    #458482

    Kiran
    Moderator
    Post count: 7069

    Hello Alex,

    Use following code snippet to open badge link in new window.

    
    
    function gd_snippet_wp_footer() {
    ?>
    <script type="text/javascript">
    try {
    jQuery(function($){
    	$('.geodir-widget-posts').find('.geodir-post-badge').each(function(){
    		$(this).find('.gd-badge-meta > a').attr('target', '_blank');
    	});
    });
    } catch(err) {
      console.log(err.message);
    }
    </script>
    <?php
    }
    add_action( 'wp_footer', 'gd_snippet_wp_footer', 9999 );

    Kiran

Viewing 8 posts - 1 through 8 (of 8 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