Site logo

Archived topic

Featured image gap on mobile

5 replies · Started by Jay on December 9, 2018

Viewing posts 1–6 of 6

Hi,

I'd like to remove the gap above featured image on mobile.

The setting "One container" doesn't have the desired result, and also affects the desktop layout which I don't want.

Any idea to get this the way I'd like?

Thanks!

Hi there,

try this CSS:

@media (max-width: 768px) {
    .single-post.right-sidebar.separate-containers .site-main {
        margin-top: 0;
    }
}

Great, thanks!
That works for posts, is it possible to exclude the rest of the site? Homepage, etc.

Sorry just to clarify - which templates / pages do you want to remove the gap?

Only on individual posts. Not archives, homepage, or any other page.

I updated the code above for single post only.

This archived topic is closed to new replies.