Keyword

k2 social buttons issues

  • Scott Oman
  • Scott Oman's Avatar Topic Author
  • Offline
  • Senior Member
More
7 years 2 months ago #160687 by Scott Oman
k2 social buttons issues was created by Scott Oman
Dear Joomlaworks Developers & Community,

1. May I ask if there's any way to disable the K2 social buttons images from displaying or adjust the image size to 0 or some other remedy you can share? Once an item is liked or added to G+, an image automatically appears that displays the person's social profile image, but these images mess up my page alignment in various ways.

2. Also, when an item is added to G+, there's a number of different images to choose from. The image associated with the K2 page/item I'm viewing is available, but it doesn't appear 1st, and there are even user images included when you scroll through all the options. This could mean that someone could share an item with an image that has nothing to do with the actual page itself. Is there any way to resolve this?

Screenshot imgur.com/a/NQlf3

Thanks!

Kind regards,

Scott

Please Log in or Create an account to join the conversation.

  • Scott Oman
  • Scott Oman's Avatar Topic Author
  • Offline
  • Senior Member
More
7 years 2 months ago #160700 by Scott Oman
Replied by Scott Oman on topic k2 social buttons issues
Regarding my first question, I was able to disable the Facebook faces from appearing by changing data-show-faces="true" to data-show-faces="false" in K2's item.php code below:

<?php if($this->item->params->get('itemFacebookButton',1)): ?>
<!-- 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="false"></div>
</div>
<?php endif; ?>

But I don't see anything that will disable the Google1+ faces from displaying. Is there a way to modify the code below so they won't appear?

<?php if($this->item->params->get('itemGooglePlusOneButton',1)): ?>
<!-- Google +1 Button -->
<div class="itemGooglePlusOneButton" >
<g:plusone annotation="inline" width="120"></g:plusone>
<script type="text/javascript">
(function() {
window.___gcfg = {lang: 'en'}; // Define button default language here
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
</div>

Thanks!

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 2 months ago #160710 by Krikor Boghossian
Replied by Krikor Boghossian on topic k2 social buttons issues
Hello,

You can find all options regarding the +1 button here -> developers.google.com/+/web/+1button/

As for the image, the image tags are present. Make sure that you are using a proper size in K2's settings (Images Tab).

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Scott Oman
  • Scott Oman's Avatar Topic Author
  • Offline
  • Senior Member
More
7 years 2 months ago - 7 years 2 months ago #160729 by Scott Oman
Replied by Scott Oman on topic k2 social buttons issues
Thanks, Krikor.

I was able to fix the button issues I was having.

Regarding the images, may I ask what the proper sizes for K2 images are so that I can enter them correctly?

Kind regards,

Scott
Last edit: 7 years 2 months ago by Scott Oman.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum