Black Friday Sale! Get up to $40 off GP Premium!Learn more

[Support request] Cant deleted Futered Image in Pages from Code

Home Forums Support Cant deleted Futered Image in Pages from Code

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #506293
    Konstantin

    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);
    }
    GeneratePress 2.0.2
    GP Premium 1.5.6
    #506540
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    What do you mean by in the Page Header? As background images?

    #506589
    Konstantin

    Hello! Sorry for my English. I want delete image after Header.But want thats image standing inside tags MAIN ARTICLE

    page

    page

    page

    #506590
    Konstantin

    1

    #506591
    Konstantin

    q

    #507070
    Leo
    Staff
    Customer Support

    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/

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.