ndiego / block-visibility

Conditional visibility controls for all WordPress blocks.
https://www.blockvisibilitywp.com
GNU General Public License v2.0
130 stars 10 forks source link

Add custom code snippets in <head> #103

Closed JosVelasco closed 4 months ago

JosVelasco commented 5 months ago

What problem does this address?

Inject snippets to a website's section, controlling their visibility.

What is your proposed solution?

In the settings of a block, add a field to insert custom code.

This could be an interesting approach to an option lacking in the Site Editor: inserting code without touching files.

ndiego commented 4 months ago

This is a cool idea, but not something I would consider for Block Visibility. The plugin should really only be controlling the visibility of blocks, but injecting code itself.