Leo
(@leohsiang)
Hi there,
Any chance you can link us to the site in question?
Let me know 🙂
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/
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;
}
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!