Skip to content

Instantly share code, notes, and snippets.

@wplit
Created February 3, 2026 05:16
Show Gist options
  • Select an option

  • Save wplit/e0cbb4f4fc91c9ac52474a9ace4cb179 to your computer and use it in GitHub Desktop.

Select an option

Save wplit/e0cbb4f4fc91c9ac52474a9ace4cb179 to your computer and use it in GitHub Desktop.
add little css notice to bricks components in gutenberg (code snippet)
<?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;
}
');
});
@wplit
Copy link
Author

wplit commented Feb 3, 2026

SCR-20260203-oiht

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment