Archived topic
Padding for different parts of content (on mobile)
1 reply · Started by Mukhtar on November 19, 2019
Hello.
I have a specific page where i am using a plugin shortcode on my website. I would like this page to only display the shortcode aspect of it as full width, leaving the general block text to be contained with the padding as default.
The shortcode displays images of property listings. At the moment, on default, it squishes the images down, but leaves the text with padding (which is okay).
If i add an layout element with the option "Contained (no padding)" the images are full width (how i want it) but so to is the text.
How do i make it so the text block has padding but the shortcode part section doesn't.
Thanks
Hi there,
simplest way is to use GP Sections:
https://docs.generatepress.com/article/sections-overview/
Each section can be set to full width or contained.