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.
Page Builder Twitter Card Summary Change To Large Image
Accepted answer
Marked as the solutionYou can edit that file:
components\com_sppagebuilder\views\page\view.html.php
Perfect. Thanks Paul. Much appreciated.
2 more replies
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

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.
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
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.