Page Builder Twitter Card Summary Change To Large Image - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

Page Builder Twitter Card Summary Change To Large Image

A

Andrew

SP Page Builder 1 year 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.

1
5 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #147409

You can edit that file:

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

1
A
Andrew
Accepted Answer
1 year ago #147410

Perfect. Thanks Paul. Much appreciated.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #147403

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.

0
A
Andrew
Accepted Answer
1 year ago #147407

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

1
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #147435

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.

1