Feature #18313
closedHide blocks
0%
Updated by Boone Gorges over 1 year ago
- Status changed from New to Reporter Feedback
I like the idea of the plugin, but it hasn't been updated in a long time. It looks like there are similar tools that are more actively maintained. See eg https://wordpress.org/plugins/block-visibility/ Does it look like this would fill a similar purpose?
CCing Scott in case he knows of anything else.
Updated by Raffi Khatchadourian over 1 year ago
Boone Gorges wrote in #note-1:
I like the idea of the plugin, but it hasn't been updated in a long time. It looks like there are similar tools that are more actively maintained. See eg https://wordpress.org/plugins/block-visibility/ Does it look like this would fill a similar purpose?
Yes.
Updated by scott voth over 1 year ago
I think many (if not most) of Kadence blocks have a robust visibility options that lets you build conditions for when the block should appear or when it should be hidden. Would any of the Kadence blocks work for your needs?
Updated by Raffi Khatchadourian over 1 year ago
scott voth wrote in #note-3:
I think many (if not most) of Kadence blocks have a robust visibility options that lets you build conditions for when the block should appear or when it should be hidden. Would any of the Kadence blocks work for your needs?
What is a Kadence block? I have been just using mostly the basic WordPress blocks.
Updated by scott voth over 1 year ago
Kadence blocks is a collection or library of blocks. We have one other library - Atomic Blocks. They are plugins.
Updated by Raffi Khatchadourian over 1 year ago
scott voth wrote in #note-5:
Kadence blocks is a collection or library of blocks. We have one other library - Atomic Blocks. They are plugins.
Thanks, Scott. I wasn't aware of those. I guess the problem though would be how to hide blocks on existing pages, i.e., those without either Kadence or Atomic blocks.
Updated by scott voth over 1 year ago
Yes, the plugin sounds like it would help with these. I forgot to mention that we also have a third library of blocks called "Otter Blocks" that is designed to work with the "Raft" theme, but really, can be used with any theme. (Also a plugin.)
Updated by Boone Gorges over 1 year ago
- Status changed from Reporter Feedback to Staged for Production Release
- Target version set to 2.1.8
Scott, thanks for chiming in. It's helpful to have a broader sense of what's available on the site.
On the basis of this conversation, I think it would be useful to have a way to handle block visibility in a way that's general to all blocks. I've added the block-visibility plugin in https://github.com/cuny-academic-commons/cac/commit/a5dff59a281a85cdc06eea9ae6226d6de8f4ad72 and it will be available after tomorrow's release.
Updated by Boone Gorges over 1 year ago
- Status changed from Staged for Production Release to Resolved