Support » Fixing WordPress » Gutenberg Editor Block Alignment Buttons Remove




    Does anyone know how to remove these.

    I can predefine which alignment I want, which is FULL. But I don’t want the client/user to be able to change this.

    The blocks I am creating are full width, so it’s redundant, how do I remove/lock these options at a block level?


Viewing 1 replies (of 1 total)
  • Hey @chewx! Unfortunately there’s currently no way to disable the alignment toolbar in the block editor. I’ve told the developers here that it’s something that has been requested.

    It’s not ideal, but you could try hiding the buttons with CSS:

    .components-toolbar__control[aria-label="Align left"],
    .components-toolbar__control[aria-label="Align center"],
    .components-toolbar__control[aria-label="Align right"],
    .components-toolbar__control[aria-label="Wide width"],
    .components-toolbar__control[aria-label="Full width"] {
    	display: none !important;
Viewing 1 replies (of 1 total)
  • The topic ‘Gutenberg Editor Block Alignment Buttons Remove’ is closed to new replies.