Keyword

Facebook Like/Share button size

  • Frederik Frydendal-Oesten
  • Frederik Frydendal-Oesten's Avatar Topic Author
  • Offline
  • New Member
More
4 years 3 months ago - 4 years 3 months 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: 4 years 3 months ago by Frederik Frydendal-Oesten.

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

More
4 years 3 months ago #177848 by JoomlaWorks
Replied by JoomlaWorks 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

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
4 years 3 months 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.

More
4 years 3 months ago #177882 by JoomlaWorks
Replied by JoomlaWorks 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.

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


Powered by Kunena Forum