Make WordPress Core

Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#49789 closed enhancement (invalid)

can't center align a single button in new Buttons block

Reported by: blogaid's profile BlogAid Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.4
Component: Editor Keywords:
Focuses: css Cc:


If you have only one button, would be nice to be able to center align it, especially in a Cover block where all of the text is center aligned by default.

Attachments (2)

buttons-block-centering-551.jpg (102.5 KB) - added by sabernhardt 3 years ago.
centering the Buttons block in WordPress 5.5.1 (Twenty Twenty)
button-centered-551.jpg (96.9 KB) - added by sabernhardt 3 years ago.
centered "Button" link

Download all attachments as: .zip

Change History (7)

#1 @SergeyBiryukov
4 years ago

  • Component changed from General to Editor

3 years ago

centering the Buttons block in WordPress 5.5.1 (Twenty Twenty)

3 years ago

centered "Button" link

#2 @sabernhardt
3 years ago

  • Focuses css added
  • Keywords needs-design removed

Hi @BlogAid !

It is possible to center the Buttons block ("Buttons" not the individual "Button"), so the functionality is there.

Note: You may need to click the "Buttons" breadcrumb link at the bottom to select the Buttons block.

In WordPress 5.5.1, I see the button centered in the editor as well as the front end in the Twenty Nineteen and Twenty Twenty themes. (In 5.4, the editor didn't show the link centered in those two themes, but it was working on the front end.)

If the link(s) do not display centered in the editor with your theme and it's one of the "Twenty"-something bundled themes, please let us know. If they do not display correctly another theme, you could open a support topic for that theme.

Last edited 3 years ago by sabernhardt (previous) (diff)

#3 @BlogAid
3 years ago

Thank you for the reply. Yes, finally figured out that you have to go to the buttons wrapper block to align it instead of the button itself

#4 @sabernhardt
3 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Thanks! I'll close the ticket then.

#5 @desrosj
3 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.