Viewing 7 replies - 1 through 7 (of 7 total)
  • Leo

    (@leohsiang)

    Hi there,

    Any chance you can link us to the site in question?

    Let me know ??

    Thread Starter phil21oo

    (@phil21oo)

    Hi,

    this is the post https://herrlichergarten.de/akkuastschere-test/ i already created this code to remove the image.

    .post-image,
    .featured-image {
    display: none;
    }

    But i want to remove everything so that it looks like the screenshot

    Hi there,

    you can use this PHP Snippet to remove those elements:

    // Remove entry header on single post
    add_filter( 'generate_show_entry_header', function( $show ) {
        if ( is_single() ) {
            $show = false;
        }
        return $show;
    } );
    
    // Remove Footer Meta
    add_action( 'wp', function() {
        remove_action( 'generate_after_entry_content', 'generate_footer_meta' );
    } );

    This article explains how to add PHP:

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

    Thread Starter phil21oo

    (@phil21oo)

    hi, thx do you also know how to remove the grey bar under the main menu?;)

    Try adding this CSS:

    #primary .entry-content:not(:first-child) {
        margin-top: 0;
    }
    Thread Starter phil21oo

    (@phil21oo)

    Well, i just bought premium. Can i switch it off with premium?

    The second code makes an error.

    ying

    (@yingscarlett)

    Hi there,

    Since you are now a premium user, all the elements that you want to remove can be done within the settings of GP Premium, these codes will not be required.

    Any chance you can open a new topic at the GP Premium support forum, we will be happy to help you there ??

    https://generatepress.com/support/

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Remove date, author etc… section from blog post’ is closed to new replies.