Project

General

Profile

Actions

Feature #18313

closed

Hide blocks

Added by Raffi Khatchadourian 10 months ago. Updated 9 months ago.

Status:
Resolved
Priority name:
Normal
Assignee:
-
Category name:
-
Target version:
Start date:
2023-06-01
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Seems useful (especially for repeat courses)?

https://wordpress.org/plugins/hide-block

Actions #1

Updated by Boone Gorges 10 months 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.

Actions #2

Updated by Raffi Khatchadourian 10 months 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.

Actions #3

Updated by scott voth 10 months 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?

Actions #4

Updated by Raffi Khatchadourian 10 months 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.

Actions #5

Updated by scott voth 10 months ago

Kadence blocks is a collection or library of blocks. We have one other library - Atomic Blocks. They are plugins.

Actions #6

Updated by Raffi Khatchadourian 9 months 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.

Actions #7

Updated by scott voth 9 months 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.)

Actions #8

Updated by Boone Gorges 9 months 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.

Actions #9

Updated by Boone Gorges 9 months ago

  • Status changed from Staged for Production Release to Resolved
Actions

Also available in: Atom PDF