Page Builder Twitter Card Summary Change To Large Image - Forum | JoomShaper
Solved SP Page Builder

Page Builder Twitter Card Summary Change To Large Image

Asked by Andrew 2 years ago Last activity 2 years ago

For Page Builder generated pages, how do I change the default code for the twitter summary card, which gives a thumbnail image, to show a large summary card instead? Thanks.

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff

You can edit that file:

components\com_sppagebuilder\views\page\view.html.php

Andrew Asked this

Perfect. Thanks Paul. Much appreciated.

2 more replies

Paul Frankowski Senior Staff
2 years ago · edited

Hi Andrew,

I can tell you only about features that there are/exist in SPPB 5.x.

In Page > Page Settings > SEO (tab) > OG image

info_2220_2024.jpg

As you can read FB (Meta) recommends using 1200 x 630px image, and it should be used in both FB/Twitter as well. But Twitter recommends using square image :/

For other meta's - you need extra component that support them.

Andrew Asked this

Thanks for the response.
Yes I've added the image in the OG option on Page Settings and it does use that image.
However, the code it generates is:
<meta name="twitter:card" content="summary" />
This code will just show a thumbnail image in twitter.
Instead I need a large summary image, so I need to replace the code with:
<meta name="twitter:card" content="summary_large_image">

Where is this code generated i.e. which specific file?
Perhaps I could create a n override and change the code.

Many thanks
Andrew

Paul Frankowski Senior Staff

But remember about that change during component update, or override that component view.

And yes, I added to wish list to improve SEO area to add more twitter cards.

Log in to reply.