Viewing 6 replies - 1 through 6 (of 6 total)
  • Jarret

    (@jarretc)

    Your featured image is only 780px wide but the area for the featured image is 1180px wide hence the background showing. The following CSS in Appearance->Customize->Additional CSS should fix the issue on pages

    .page .page-header-image {
        background: white;
    }
    Theme Author Tom

    (@edge22)

    Another option is to move the featured image inside the content area, instead of having it sit on top. Let me know if you’d like to try that ??

    Thread Starter Bike Gremlin

    (@bikegremlin)

    Jarret, thank you very much. It works.

    Tom – that option would be even better, since the widgets on the right hand side would stay “on top” when viewed on a desktop screen. I’d love to give that a try. ??

    Theme Author Tom

    (@edge22)

    Our pro version has that option inside the Customizer.

    Otherwise, you can use this PHP:

    add_action( 'after_setup_theme', function() {
        remove_action( 'generate_after_header', 'generate_featured_page_header', 10 );
        add_action( 'generate_before_content', 'generate_featured_page_header', 10 );
    } );

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    Thread Starter Bike Gremlin

    (@bikegremlin)

    Thank you very much. It works, perfectly. ??

    Theme Author Tom

    (@edge22)

    You’re welcome ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Featured image on pages (not posts) causing strange look’ is closed to new replies.