Make WordPress Core

Opened 21 months ago

Last modified 20 months ago

#56069 new feature request

Footer Template Parts and Reusable Blocks Have Added Spacing By Default

Reported by: daviesmediadesign's profile daviesmediadesign Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.0
Component: Editor Keywords:
Focuses: template Cc:

Description

I noticed when working with WordPress 6.0 that both Footer Template Parts (I have not tested on Header Template Parts) and Reusable Blocks have spacing around the block by default. This creates unwanted aesthetics such as a thick white line between a block with a color background and the footer (when the footer also has a color background).

In most cases when designing a website people will not want this spacing between the blocks.

This problem is made worse by a misrepresentation of how the Template Part will look in the Site Editor - it appears there is NO space when viewing the same region in the Site Editor. However, when publishing and viewing the live changes on the site, the white line appears.

The workaround to alleviate the problem is to add custom CSS to set the "margin-block-start" to 0 for the block elements in question (.wp-site-blocks in the case of the footer template part). However, editing the custom CSS in WordPress 6.0 is a whole different problem in itself as one must get back to the deprecated Customizer through a series of hidden steps to access the "Additional CSS" field and customize the CSS.

In short, the default setting should be that the "margin-block-start" is set to 0 for block elements to remove annoying/unwanted spacing between blocks from footer template parts or reusable blocks.

Attachments (1)

Unwanted Spacing Between Footer Template Part and Main Content.jpg (26.3 KB) - added by daviesmediadesign 21 months ago.
Example of spacing between last block on the page and the footer template part

Download all attachments as: .zip

Change History (2)

@daviesmediadesign
21 months ago

Example of spacing between last block on the page and the footer template part

#1 @sabernhardt
20 months ago

  • Component changed from General to Editor
Note: See TracTickets for help on using tickets.