One more social link button

This topic contains 7 replies, has 3 voices, and was last updated by  vcherednichenko 8 years, 12 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #39001

    vcherednichenko
    Free User
    Post count: 222

    Is it possible to add one more social link (vk.com) button in section that displays on Detail page sidebar?

    And is it possible to align the buttons so they are not bunched together?

    Please see the attached image

    #39005

    Simone
    Expired Member
    Post count: 3515

    Hi, this is a custom modification.
    Take a look here, Ive made some time a go a similar thing for WhatsApp,

    Create your own embed code here
    https://vk.com/dev/Like

    and paste the code replacing the one for whatsapp, all is explained here
    https://wpgeodirectory.com/support/topic/share-buttons/#post-29165

    #39010

    vcherednichenko
    Free User
    Post count: 222

    Here’s a code I did. How to insert the correct help please

    <!– Put this script tag to the <head> of your page –>
    <script type=”text/javascript” src=”//vk.com/js/api/openapi.js?116″></script>

    <script type=”text/javascript”>
    VK.init({apiId: 2149373, onlyWidgets: true});
    </script>

    <!– Put this div tag to the place, where the Like block will be –>
    <div id=”vk_like”></div>
    <script type=”text/javascript”>
    VK.Widgets.Like(“vk_like”, {type: “button”});
    </script>

    #39039

    Simone
    Expired Member
    Post count: 3515

    try with

    
    
    add_action('geodir_after_social_sharing_buttons' , 'pinterest_vk', 10);
    function pinterest_vk(){
    
     ?>
    
    <!– Put this script tag to the <head> of your page –>
    <script type=”text/javascript” src=”//vk.com/js/api/openapi.js?116″></script>
    
    <script type=”text/javascript”>
    VK.init({apiId: 2149373, onlyWidgets: true});
    </script>
    
    <!– Put this div tag to the place, where the Like block will be –>
    <div id=”vk_like”></div>
    <script type=”text/javascript”>
    VK.Widgets.Like(“vk_like”, {type: “button”});
    </script>
    
     }
    
    
    #39177

    vcherednichenko
    Free User
    Post count: 222

    When add the code in functions.php, I got a white screen. Now I can not log in admin panel, and on the site.))) is well, that I experimented on the another site

    #39217

    vcherednichenko
    Free User
    Post count: 222

    Please tell me what to do?

    #39230

    Paolo
    Site Admin
    Post count: 31206
    This reply has been marked as private.
    #39256

    vcherednichenko
    Free User
    Post count: 222

    I agree on a fee.

    How much will cost to align the icons, so that they were in a row and do not block each other?

    Thank you

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