Block Visibility allows you to dynamically control which blocks are visible on your WordPress website and who can see them, which includes the ability to schedule blocks.
This Color Scheme add-on plugin for Block Visibility enables you to hide blocks based on the prefers-color-scheme
CSS media feature. Additionally, it check the local storage for the theme setting and applies it accordingly.
- Make sure you are running the latest version of Block Visibility, WordPress, and you are using the Block Editor
- Download and activate the Block Visibility – Add-on Color Scheme plugin from GitHub.
A local WordPress environment can be created using the @wordpress/env package and the included ``.wp-env.json` file.