-
AuthorPosts
-
roma7000 Friend
roma7000
- Join date:
- July 2013
- Posts:
- 12
- Downloads:
- 118
- Uploads:
- 3
- Thanked:
- 1 times in 1 posts
November 25, 2013 at 8:30 pm #192546Hello,
How can i change the text next to the facebook like button “Sign Up to see what your friends like.”in a K2 article.
Manos ModeratorManos
- Join date:
- February 2014
- Posts:
- 2806
- Downloads:
- 46
- Uploads:
- 56
- Thanks:
- 200
- Thanked:
- 633 times in 576 posts
November 25, 2013 at 9:06 pm #513486Hello,
If i am not wrong that’s controlled by FB
Regards
Manos
roma7000 Friendroma7000
- Join date:
- July 2013
- Posts:
- 12
- Downloads:
- 118
- Uploads:
- 3
- Thanked:
- 1 times in 1 posts
November 25, 2013 at 9:38 pm #513488Hello 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
-
roma7000 Friend
roma7000
- Join date:
- July 2013
- Posts:
- 12
- Downloads:
- 118
- Uploads:
- 3
- Thanked:
- 1 times in 1 posts
November 26, 2013 at 9:05 pm #513619Problem 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>1 user says Thank You to roma7000 for this useful post
Manos ModeratorManos
- Join date:
- February 2014
- Posts:
- 2806
- Downloads:
- 46
- Uploads:
- 56
- Thanks:
- 200
- Thanked:
- 633 times in 576 posts
November 26, 2013 at 9:40 pm #513622Thanks 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
-
AuthorPosts
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
Jump to forum