Disable all Bricks features on certain pages; post types

I don’t want our clients to be able to access Bricks for certain pages and custom post types.

Specifically, this should suppress:

  • Yellow “EDIT WITH BRICKS” butons on post editor
  • Bricks-related links in post list page (e.g., ‘Edit with Bricks’,
  • No Bricks top menubar item on frontend
  • (Is that all?)

I am doing this with custom code, but it’s a lot of work and feeling a bit hacky right now in some places (e.g., Post list page links).

Is there a proper way to do this?

Thanks!

This is coming in Bricks 2.0. It will probably be available as a stable feature in about a month. See this post: Bricks 2.0 Changelog – Bricks

Funny after using Bricks for a long time … within a month of this feature coming out officially, I spend hours hacking a solution… Oh well! I will watch for this release - TY @GrowPlugins

Well don’t throw your code away. It’s possible something very specific you need to restrict won’t be possible right away. Maybe it will still come in handy.

Thanks. One issue I note is that it was easier to suppress the EDIT WITH BRICKS button in Gutenberg. When using the Classic editor the Bricks tab is front by default (not sure why), and that was not easy to deal with.

I am looking forward to this update! :slight_smile:

Hi @GrowPlugins !

Ok yes I do see this item in the 2.0 Changelog :blush::

  • Post types: Select which post types can be edited using Bricks.

We also need to disable Bricks on specific posts for our clients (such as only certain Pages)… E.g., some are off-limits (templated), and we only want them to be able to edit the post title, content, author, etc.

Just curious if this will be included in Bricks 2.0, or if not, if we can get a feature request in for this?

Thanks again!

Good question. I haven’t played around with the alpha yet. Hopefully that is planned or will be implemented via feature request.

This would probably be something you will need to combine CPT with the builder capabilities functionality.