Keyword

Facebook Like/Share button size

  • Frederik Frydendal-Oesten
  • Frederik Frydendal-Oesten's Avatar Topic Author
  • Offline
  • New Member
More
2 weeks 3 days ago - 2 weeks 3 days ago #177843 by Frederik Frydendal-Oesten
Facebook Like/Share button size was created by Frederik Frydendal-Oesten
Hi

I have a little challenge with the facebook like / share button. It is 150px width, but it should be 170px width.

But where do I change it?

The reason is the language is Danish, and the text on the button is therefore longer.



Attachments:
Last edit: 2 weeks 3 days ago by Frederik Frydendal-Oesten.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 2 days ago #177848 by Fotis
Replied by Fotis on topic Facebook Like/Share button size
Change the width value here: github.com/getk2/k2/blob/master/components/com_k2/templates/default/item.php#L315

Just make sure you do this in an override of the item.php file.

More on overriding K2 here: getk2.org/documentation/tutorials/templating-with-k2-and-the-concepts-of-sub-templates

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Frederik Frydendal-Oesten
  • Frederik Frydendal-Oesten's Avatar Topic Author
  • Offline
  • New Member
More
2 weeks 1 day ago #177850 by Frederik Frydendal-Oesten
Replied by Frederik Frydendal-Oesten on topic Facebook Like/Share button size
Nothing happens when I adjust the data-width from 160px to 170px


Attachments:

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
6 days 8 hours ago #177882 by Fotis
Replied by Fotis on topic Facebook Like/Share button size
You can't control the width of a single button from Facebook's widget code. In any case, you're free to adapt the code in the override or just use CSS to enforce different widths however you want.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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


Powered by Kunena Forum