Site logo

Archived topic

how to set margins for blog posts on blog page and categories archive

3 replies · Started by Halil on December 15, 2022

Viewing posts 1–4 of 4

Hi,

Is there a setting in customizer to set left/right margins for blog posts on blog page & category archives?

without touching margins for sidebar, I'm trying to set left/right margins for blog posts on blog and archives.

I think there is a setting for this in customizer 'cause developer tools show one specific css for this (which I override manually)

but I'm unable to find it? Could you shed some light on this?

I added pic.

Hi there,

With the Apearance > GneraetePress > Spacing module active, you can set the Spacing in Customizer > Layout > Container - but it will apply to all container spacing.

If you only want to affect a certain space then it will require CSS. Let me know.

thanks David,
this is what I wrote and it seems working.

.one-container.right-sidebar .site-main, .one-container.both-right .site-main {
    margin-right: 40px !important;
}

Glad to hear you got it working !

This archived topic is closed to new replies.