share buttons

This topic contains 6 replies, has 3 voices, and was last updated by  Simone 9 years, 3 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #28113

    ray-ramon-r
    Free User
    Post count: 101

    I want to add share buttons for my blog, and have it show up in my listings as GD has their own already. Any suggestions. I’ve used shareaholic before, your guys’ feedback please. Also, I installed addtoany and it was a mess.

    #28124

    Simone
    Expired Member
    Post count: 3515

    hi, you can try this

    #28141

    Guust
    Moderator
    Post count: 29970
    #29129

    ray-ramon-r
    Free User
    Post count: 101

    I want to see about getting whatsapp as an option to show, it’s a tool that many here in Mexico use to communicate. In the share buttons we should also have pinterest with Facebook, Twitter and Google+ as we have now. How can I get this done?

    #29165

    Simone
    Expired Member
    Post count: 3515

    Here’s what you can do:
    -for whatsapp, create a Text custom field, and name the HTML variable to whatsapp , this will be filled when adding a listing.

    -open the functions.php inside your child theme and add this

    
    
    add_action('geodir_after_social_sharing_buttons' , 'pinterest_whatsapp', 10);
    function pinterest_whatsapp(){
    global $post, $wp_query, $preview, $geodirectory;
    $postid = $wp_query->post->ID;
    
     ?>
    <a style="margin-right: 10px;" href="//www.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark"  data-pin-color="red"><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_20.png" /></a>
    <!-- Please call pinit.js only once per page -->
    <script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script> <?php echo "<img src="http://YOURDOMAIN/whatsapp.png" height="25" width="25" >".geodir_get_post_meta($postid,'geodir_whatsapp',true);  }
    

    this will output the pinterest button and whatsapp in a row below the social sharing buttons (twitter+facebook+G+)

    Upload an icon inside your website and post the complete url of the image where it says “http://YOURDOMAIN/whatsapp.png”

    you can see it working live on my test website here http://test.simonetambasco.com/geodirectory/new/united-kingdom/greater-london/london/attractions/test-whatsapp/

    #29189

    ray-ramon-r
    Free User
    Post count: 101

    pin it works fine on your test site, however whatsapp does not in either desktop or smart phone.

    #29234

    Simone
    Expired Member
    Post count: 3515

    This is what I see

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