Created
February 3, 2026 05:16
-
-
Save wplit/e0cbb4f4fc91c9ac52474a9ace4cb179 to your computer and use it in GitHub Desktop.
add little css notice to bricks components in gutenberg (code snippet)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action('enqueue_block_editor_assets', function() { | |
| wp_add_inline_style('wp-edit-blocks', ' | |
| .wp-block[data-type*="bricks-component"] > div::after, | |
| .wp-block[data-type*="default/gutenb"] > div::after { | |
| content: "See additional settings in the sidebar on the right"; | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| background: var(--wp-admin-theme-color, #3858e9); | |
| color: white; | |
| padding: 0.25em 0.5em; | |
| font-size: 12px; | |
| line-height: 1.4; | |
| z-index: 100; | |
| pointer-events: none; | |
| } | |
| '); | |
| }); |
Author
wplit
commented
Feb 3, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment