Archived topic
Cant deleted Futered Image in Pages from Code
5 replies · Started by Konstantin on February 26, 2018
i have set Post Images on my Sites and Posts, but i do not want to show them in the Page Header.
<div class="featured-image page-header-image grid-container grid-parent">
<img width="300" height="198" src="image.jpg" class="attachment-full size-full" alt="description" itemprop="image" /></div>
All this hooks NOT working:
add_action( 'wp','generate_remove_page_header' );
function generate_remove_page_header() {
remove_action('generate_after_header','generate_page_header', 10);
remove_action('generate_before_content','generate_page_header_inside', 10);
remove_action('generate_before_content','generate_page_header_single', 10);
remove_action('generate_after_header','generate_page_header_single_above', 10);
}
Hi there,
What do you mean by in the Page Header? As background images?
Hello! Sorry for my English. I want delete image after Header.But want thats image standing inside tags MAIN ARTICLE




So nothing happens when you click Remove featured image?
If so can you try #1 here to eliminate plugin conflict? https://docs.generatepress.com/article/debugging-tips/