Site logo

Archived topic

Can't remove white space after removing title and excerpt

3 replies · Started by Jason on March 12, 2021

Viewing posts 1–4 of 4

Using Mellow from the Site Library, I've removed post title, author, category, etc. I've used the following CSS as well:

header.entry-header {
display: none;
}
.entry-summary {
display: none;
}

There you can see white space above and below the featured post image. I've tried adjusting container spacing, everything I could think of all morning. Ultimately I'd like equal-sized image 'tiles' to be shown without any white space whatsoever above/below them.

Thanks

Hi Jason,

Give this CSS a try:

.blog .inside-article .post-image:not(:first-child) {
    margin-top: 0;
}
.blog .inside-article .entry-meta {
    margin: 0;
}
.blog .inside-article {
    padding-top: 0;
    padding-bottom: 0;
}
.blog .inside-article .post-image img {
    margin-bottom: -9px;
}

That works, thanks!

One quick follow-up question if you don't mind.

This particular site with demo content from the site library Mellow doesn't have a standard homepage it seems, just has 3 elements for home hero, post hero, and site hero.

Does this mean that if I wanted to add to frontpage in the future by adding different sections using something like the Gutenberg editor that I won't be able to? Where in Wordpress does it dictate what goes on the front page for this particular site? Or is this Mellow theme just for displaying blog posts and nothing more?

Thanks!

This archived topic is closed to new replies.