WordPress.org

Make WordPress Core

Opened 10 months ago

Closed 4 months ago

Last modified 4 months ago

#49789 closed enhancement (invalid)

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

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

Description

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 4 months ago.
centering the Buttons block in WordPress 5.5.1 (Twenty Twenty)
button-centered-551.jpg (96.9 KB) - added by sabernhardt 4 months ago.
centered "Button" link

Download all attachments as: .zip

Change History (7)

#1 @SergeyBiryukov
10 months ago

  • Component changed from General to Editor

@sabernhardt
4 months ago

centering the Buttons block in WordPress 5.5.1 (Twenty Twenty)

@sabernhardt
4 months ago

centered "Button" link

#2 @sabernhardt
4 months 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 4 months ago by sabernhardt (previous) (diff)

#3 @BlogAid
4 months 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
4 months ago

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

Thanks! I'll close the ticket then.

#5 @desrosj
4 months ago

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