Modify og:image tag for event

  • Daniel Duvald
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 2 months ago #92844 by Daniel Duvald
Modify og:image tag for event was created by Daniel Duvald
Hi

When we share an event on Facebook, it uses the og:image tag that points to the thumbnail image created by Event Booking instead of the full image.

Facebook determines how to display the link based on the image resolution. Our thumbnails only has a width of 300px, so they are not "big enough" to be displayed as a "large image above the text" when we share. Instead Facebook uses a small thumbnail to the left of the shared text.

W would like to correct this issue, by modifying the og:image tag and point it to the original file, e.g. <meta property="og:image" content="https://domain/media/com_eventbooking/images/filaname.jpg">

I've searched for the location of this code, but can't find it.
Can you help with a location?

Thanks

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

More
9 years 2 months ago #92882 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Modify og:image tag for event
Hello Daniel

The file is components/com_eventbooking/event/tmpl/default_share.php

Please look at that file and performing the change. You should put the modified file to PATH_TO_YOUR_SITE_TEMPLATE/html/com_eventbooking/event folder so that this change won't be lost when you update to future releases of Events Booking

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc