Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable specific blocks in WordPress #148

Closed
bph opened this issue Jul 6, 2023 Discussed in #139 · 8 comments
Closed

How to disable specific blocks in WordPress #148

bph opened this issue Jul 6, 2023 Discussed in #139 · 8 comments
Assignees
Labels

Comments

@bph
Copy link
Collaborator

bph commented Jul 6, 2023

Discussed in #139

Originally posted by ndiego June 30, 2023
"How do I disable the Spacer block?"
"How do I disable certain blocks based on the role of the user?"
"How do I disable certain blocks on posts but not on pages?"

These questions seem to come up often, and there is no comprehensive guide on how to do this and what the current limitations are around controlling blocks. This article would explore this topic and provide examples of how to achieve common use cases.

@ndiego
Copy link
Member

ndiego commented Jan 21, 2024

At long last, this article is ready for its first review: https://docs.google.com/document/d/1jv8boQcy-g_e1bV2ZVbsCtl8RgCfGdESoIWG3dxQhBE/edit?usp=sharing

@ndiego ndiego moved this from To-do to Needs 1st review in Developer Blog Content Board Jan 23, 2024
@justintadlock justintadlock moved this from Needs 1st review to Done w/ 1st Review in Developer Blog Content Board Jan 23, 2024
@justintadlock
Copy link

First review is done. I didn't even know about using allowedBlocks in patterns. I'll definitely be taking advantage of that tip!

@ndiego ndiego moved this from Done w/ 1st Review to Needs 2nd review in Developer Blog Content Board Jan 24, 2024
@ndiego
Copy link
Member

ndiego commented Jan 26, 2024

Pre-publishing checklist

  • Post Title and subheaders in Sentence case
  • Are Category or Categories selected?
  • Are Tags identified?
  • Is there an explicit Excerpt? (not optional)
  • Do all images have an alt-text?
  • Props added?
  • 🙌 Publish! 📗 🎉

Post-publishing checklist

  • add Props for reviews to #props channel in WP Slack
  • close the issue with a comment to link to the published post
  • close the accompanying discussion with link to the publish post.

@ndiego
Copy link
Member

ndiego commented Jan 26, 2024

@DanSoschin has provided the 2nd review. Thanks Dan!

@ndiego ndiego moved this from Needs 2nd review to Ready to publish in Developer Blog Content Board Jan 26, 2024
@bph
Copy link
Collaborator Author

bph commented Jan 29, 2024

@ndiego Congrats for getting ready to publish.
We have a few more items on the pre-publish check list, though.

  • Are all images files uploaded to the media library
  • Assign or upload a featured image
  • add copy for a social post as comment to this issue (example)

@ndiego
Copy link
Member

ndiego commented Jan 29, 2024

Thanks @bph!

@ndiego
Copy link
Member

ndiego commented Jan 29, 2024

Social copy:

Have you ever wanted to disable specific blocks in WordPress? Perhaps to simplify or curate the editing experience?

The latest Developer Blog article walks you through each available method. Dive in for the details!

https://developer.wordpress.org/news/2024/01/29/how-to-disable-specific-blocks-in-wordpress/

Post is published: https://developer.wordpress.org/news/2024/01/29/how-to-disable-specific-blocks-in-wordpress/

@ndiego ndiego closed this as completed Jan 29, 2024
@ndiego
Copy link
Member

ndiego commented Jan 29, 2024

Social post scheduled

@bph bph moved this from Ready to publish to Published (Done) in Developer Blog Content Board Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Published (Done)
Development

No branches or pull requests

3 participants