ndiego / block-visibility

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

Add custom code snippets in <head> #103

Closed JosVelasco closed 3 months ago

JosVelasco commented 4 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 3 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.