Site logo

Archived topic

Blog Content--Padding only controls Sidebar, not Content

3 replies · Started by cartagram on January 3, 2022

Viewing posts 1–4 of 4

I'm new to GeneratePress and have created a new website. I'm using the Premium plugins (including Spacing).

The static Homepage seems to have the 40 px padding. But on a Blog post, the text in the contain is up against the left side of the container (0 px padding). When I work with the controls in Customizer > Layout > Container > Content Padding, they affect either the Sidebar or an image centered in the Content.

How do I fix the padding in the Content?

BTW: the support document at https://docs.generatepress.com/article/content-padding/ has a section at the bottom: "Content Padding Not Working." It references the Layout Metabox (https://docs.generatepress.com/article/content-container/). I don't see a Layout with those options. Maybe that reference is to an older version of GeneratePress?

Hi there,

Aside from the Layout Metabox, you may also want to check for any Layout Element.

Layout element's content setting may also remove padding.
https://docs.generatepress.com/article/layout-element-overview/#content-1

Note: I see your site is still using GP's old float system for layouts. Consider using flexbox as floats is considered obsolete. (see Appearance > Customize > General and set things to "flex".

Thank you. I changed Floats to Flex. And now I don't see any menu choices in Customize > General for Floats or Flex. I assume that changing to Flex is an update that can't be reversed once activated.

Anyway, the answer to the blog padding came from https://docs.generatepress.com/article/layout-metabox-overview/

My problem was that the Blog post page was using "Contained" as a Content Container value. Once I changed it to "Default," my content padding became "normal."

It looks like creating Elements will be a better approach. I just need to learn about them.

Thank you. I changed Floats to Flex. And now I don’t see any menu choices in Customize > General for Floats or Flex. I assume that changing to Flex is an update that can’t be reversed once activated.

That's right. It's meant to be obsoleted going forward.

My problem was that the Blog post page was using “Contained” as a Content Container value. Once I changed it to “Default,” my content padding became “normal.”

It looks like creating Elements will be a better approach. I just need to learn about them.

Let us know if you have further questions. Adjusting padding is a combination of Layout elements + custom CSS. :D

This archived topic is closed to new replies.