Skip to content

Instantly share code, notes, and snippets.

@webdados
Last active August 1, 2025 16:31
Show Gist options
  • Save webdados/61197dd2e98f399ba2cfeefbac518851 to your computer and use it in GitHub Desktop.
Save webdados/61197dd2e98f399ba2cfeefbac518851 to your computer and use it in GitHub Desktop.
Change the highlight for the "Language Attribute for Container Blocks" WordPress plugin, using PHP
<?php
// Just return any color you want in a format supported by CSS
add_filter(
'nakedcatplugins_lang_attr_highlight_color',
function () {
return 'rgba(0, 150, 255, 0.8)'; // Blue instead of red
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment