Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • roma7000 Friend
    #192546

    Hello,

    How can i change the text next to the facebook like button “Sign Up to see what your friends like.”in a K2 article.


    1. Naamloos
    Manos Moderator
    #513486

    Hello,

    If i am not wrong that’s controlled by FB

    Regards

    Manos

    roma7000 Friend
    #513488

    Hello Pascm,

    Oke but how can i change that to dutch. On this forum on top of this page i see it in dutch but on my own page i see it in English??

    And why is on the demo page no text visible

    Greeting Roma


    1. Naamloos1
    2. Naamloos3
    roma7000 Friend
    #513619

    Problem Solved. Go to componets/com_k2/templates/default/item.php and change:

    <!– Facebook Button –>
    <div class=”itemFacebookButton”>
    <div id=”fb-root”></div>
    <script type=”text/javascript”>
    (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_US/all.js#xfbml=1”;
    fjs.parentNode.insertBefore(js, fjs);
    }(document, ‘script’, ‘facebook-jssdk’));
    </script>
    <div class=”fb-like” data-send=”false” data-width=”200″ data-show-faces=”true”></div>
    </div>
    to:

    <!– Facebook Button –>
    <div class=”itemFacebookButton”>
    <div id=”fb-root”></div>
    <script type=”text/javascript”>
    (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/nl_NL/all.js#xfbml=1”;
    fjs.parentNode.insertBefore(js, fjs);
    }(document, ‘script’, ‘facebook-jssdk’));
    </script>
    <div class=”fb-like” data-send=”false” data-width=”200″ data-show-faces=”true”></div>
    </div>

    Manos Moderator
    #513622

    Thanks for posting that, but my understanding is that this should work out of the box without the need of that code, i will investigate further and i will try to share with you all my findings.

    Seems like this is only with some language files, what i am trying to tell you is that according to the language file you use on your Joomla installation the appropriate language code goes to the head of the html and that’s where FB grabs the proper language to display.

    Maybe that language code is not on your site head and that is something that needs investigation.

    Regards

    Manos

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

This topic contains 5 replies, has 2 voices, and was last updated by  Manos 11 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum