Archived topic
Remove grey colour section from post under header
5 replies · Started by Philipp on September 26, 2021
Hello,
how can i remove the grey colour section under the the header and also over the footer?
https://herrlichergarten.de/akku-astschere-test/
https://www.awesomescreenshot.com/image/14037688?key=fcdbb1c4fe84eca5d0696e76f49dcc44
https://www.awesomescreenshot.com/image/14037699?key=2b8f4d3813d1e81b2e4e03d073633cd4
You already send me this code and it is working for the date etc...
// 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' );
} );
And also this code, but it makes an error
#primary .entry-content:not(:first-child) {
margin-top: 0;
}
Hi there,
Try adding this CSS to remove the grey space.
.entry-content {
margin-top: 0 !important;
}
.page-header, .sidebar .widget, .site-main>* {
margin-bottom: 0 !important;
}
Thx, that worked;)
Nice one. Glad it works for you. No problem. :)
I tried using the provided css, but it had no effect on the size of margin between header and content.
.entry-content {
margin-top: 0 !important;
}.page-header, .sidebar .widget, .site-main>* {
margin-bottom: 0 !important;
}
Here is a link to my site:
https://www.nesteaglerock.com
Also, what would I add to the css to make it only on mobile.
Thank you!
Hi Tim,
Can you open a new topic for your question?
Thanks!