This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Disable ‘add block’ button for new posts on Gutenberg

2 years ago · Last reply by Andrew Misplon 2 years ago

Hi there,
I wish to know if there’s some way to disable the ‘add layout block’ button that appears when creating a new post. I mean this one:
https://postimg.cc/jLKFXZ6v
I’m having problems clicking it by error and I normally don’t use it.
Thanks for your help.

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

4
  1. Andrew Misplon Staff 2 years, 7 months ago

    Hi Carlos

    Thanks for posting your question.

    As far as I’m aware, a setting isn’t available to remove the Block Editor Layout Block button. I’ve forwarded your request to our developer for his attention. We’ll do our best to introduce a setting in the next Page Builder release. The setting will be available at SettingsPage Builder. Please, feel free to follow up with me about this anytime.

  2. Andrew Misplon Staff 2 years, 7 months ago

    Hi Carlos

    I’ve chatted with Alex at SiteOrigin. He let me know that the following can be added via the Code Snippets plugin or a child theme functions.php file to remove the Add SiteOrigin Layout Block button:

    add_filter( 'siteorigin_layout_block_show_add_button', '__return_false' );

    He also let me know that a setting will be added in the near future to SettingsPage BuilderGeneral.

    Thanks for your feedback. Please, let us know if you have any follow-up questions.

    Cheers, Andrew

  3. Carlos Perez 2 years, 7 months ago

    Hello Andrew,
    Thanks for your help, I’ve tried the provided code and it works fine for me.
    Good to know there’ll be a setting for that too.
    Regards,

  4. Andrew Misplon Staff 2 years, 7 months ago

    Hi Carlos

    Super, I’m glad to hear you’ve used the filter Alex sent us successfully. Thanks for your feedback on this topic. If any queries or requests arise in the future, please, let us know.

    Cheers

    Andrew

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread