Site logo

Archived topic

Different separate spacing in different pages

5 replies · Started by Alberto on October 25, 2017

Viewing posts 1–6 of 6

Hello.
This is about the Separate Spacing parameter at Customizing -> Layout -> Container.
I setup to 0 because I want no spacing in certain pages, but I want a top padding, for example 40px, in other pages.
Is there any hook or filter I can use to achieve this goal?

Thanks.

Hello Leo.
Thanks for your reply!
Is there a way not using a plugin or even CSS?, Maybe using any hook or filter?

Regards.

Tom's plugin with CSS is the easiest way. Simple CSS is not necessary though you can just add .page-id-xx in front of the CSS above to make it page specific.

One other option you can consider is to set the padding to something you want normally, then use page builder container to remove padding on pages you don't want padding: https://docs.generatepress.com/article/page-builder-container/

Hi Leo!
Page Builder Container is sure the best choice for me, it works perfectly!

Thank you very much!

No problem!

This archived topic is closed to new replies.