• I am editing the ‘Single post’ template of a child theme of Twenty Twenty Three and need to set the left and right margin for the ‘Post meta’ element. It’s not available. Vertical margin is available but horizontal margin is not in the dropdown list. For padding, both horizontal and vertical are available, but for margin only vertical is. Why?

    I even tried workarounds by enclosing ‘Post meta’ in a container, and I tried Column, Row, and Group. Left and right margin are still not available. Why?

    The utter lack of logic in the way this theme is built is driving me insane. Why did WordPress make this abomination of a theme? Aren’t you tired of people coming to the support forum and cursing it for being so backwards and illogical? Why is Automattic/Wordpress making developers suffer from being unable to do such small, basic things?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator jordesign

    (@jordesign)

    Hey @knocks – I can definitely understand the frustration.

    Generally speaking – those layout items (and inner blocks) won’t have margin controls for the left and right – this is by design as horizontal margins can very often break layouts.

    If you wanted to wrap it in a group block – you could put padding on the group block itself – which would then mean the Post Meta block sits in the right place?

    Thread Starter Knocks

    (@knocks)

    If the problem could be solved by using padding instead of margin, then I would just do that instead of posting here. They are different things. When padding is used, Google Ads allows the ad units to go beyond the container’s borders and breaks the mobile viewport, creating a horizontal shift. When margin is used, the ads respect the borders.

    Using margin on those elements is not breaking anything. I added margin via Chrome inspector, and it’s having the exact effect that’s needed.

    Moderator jordesign

    (@jordesign)

    Hey @knocks – do you have a link to the page in question so I can take a closer look?

    Thread Starter Knocks

    (@knocks)

    Hi. The site is not public currently. I am using a workaround by placing the blocks that need margin inside a container and limiting their width to the parent’s width.

    Moderator jordesign

    (@jordesign)

    That does sound like a reasonable workaround – nice thinking. Unfortunately without being able to check out the layout in more detail – it’s difficult for me to suggest anything further.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Horizontal margin settings are not available for some elements’ is closed to new replies.