Quantcast
Channel: WordPress.org Forums » [Open Graph] Support
Viewing all articles
Browse latest Browse all 36

Force header image on front page

$
0
0

Replies: 0

Hi,

I would like to force the front page only to use the site header image as og:image. I have successfully managed to set a couple of other tags with use of a page ID or is_front_page(), but this is stubbornly refusing to work for the image.

I have tried adding the header as the page’s featured image so it would pull that first, but as I don’t actually want it on the page I have this set as ‘Show featured image in the posts lists only, but hide it in the single post view.’ This, I guess, is also hiding it from view for og too.

Any ideas?

WordPress 6.7.1.
Astra theme 4.8.8
Open Graph 2.0.1

Thank you.


Viewing all articles
Browse latest Browse all 36

Latest Images

Trending Articles



Latest Images