Archived topic
Remove Featured Image without CSS or Page Header addon
3 replies · Started by Anthony on September 5, 2017
Hi,
I'd like to remove the featured image from my pages and posts. I don't want to use neither or to activate have the page header option (my pages are build with beaver builder and the page header metabox is too much for the edition page). Is there any hook I can use?
Hi Anthony,
You can just remove the feature image from the posts/pages? https://docs.generatepress.com/article/adding-featured-images/
Page header wouldn't show unless you added them as well. But you can de-activate the page header add-on?
https://docs.generatepress.com/article/installing-gp-premium/#activate-your-add-ons
Hi,
I don't want to remove my featured image since it is used for social sharing, open graph and twitter cards, and I don't want to do it for every singe post or pages.
I have deactivated the addon and featured images don't show on posts, but still on pages. Am I missing something?
You could just hide them with CSS:
.page-header-image {
display: none;
}
Or you can remove the featured image completely, and use a plugin like Yoast to add your social sharing image: https://kb.yoast.com/kb/getting-open-graph-for-your-articles/