Remove White Space After Page Titles Removed
-
I removed my page titles using the CSS below
.page .wp-block-post-title {
display: none;
}I tried to remove the white space with code I saw on another forum
.page .wp-block-post-content h2 {
margin-top: 0;
}.page .wp-block-post-title h2 {
margin-top: 0;
}Neither of them worked does anyone know what code would ?
The blog I need help with is: (visible only to logged in users)
-
Hi! The theme you’re using (Attar) is compatible with the Site Editor, which means you can actually edit the templates of the theme to remove the things you don’t want, like page titles.
You wouldn’t actually need that CSS code; just head on into the Site Editor at Appearance > Editor (beta) and ensure you’re editing the Page template. From there you can remove the Post Title block (which is valid for page titles too) and save the template. This will stop the page title showing on your published pages, and since the entire block itself is removed, it doesn’t have a margin of white space left behind.
In case of need, we have some guides that may be useful for this:
- The topic ‘Remove White Space After Page Titles Removed’ is closed to new replies.