• Resolved cavey85

    (@cavey85)


    Hi,

    I had a language problem. I want to set “like” or “share” buttons for my language. I try write here that source code, which solve the issue.

    this code goes into functions.php:

    add_action ('wp_head' , 'add_fb_button_script');
    
    function add_fb_button_script() {
        ?>
           <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_EN/all.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
        <?php
    }

    Change the en_EN tag other language e.g. pl_PL

    bye,
    Cavey85

    https://wordpress.org/plugins/add-to-any/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘like, share button other language’ is closed to new replies.