Skip to content

Instantly share code, notes, and snippets.

@KittenCodes
Created April 18, 2025 07:44
Show Gist options
  • Save KittenCodes/7b53e99932f17899520a862cd165ab73 to your computer and use it in GitHub Desktop.
Save KittenCodes/7b53e99932f17899520a862cd165ab73 to your computer and use it in GitHub Desktop.
Fix: Oxygen Classic - WordPress v6.8 prevents changing images in Gutenberg
<?php
add_action('admin_head', 'oxygen_support_fix_gutenberg_image');
function oxygen_support_fix_gutenberg_image() {
echo '<style>
/* WordPress 6.8 CSS Override to allow images to be changed in Gutenberg */
[data-type*="oxygen-vsb"] .wp-block img:not([draggable]),
[data-type*="oxygen-vsb"] .wp-block svg:not([draggable]) {
pointer-events: unset;
}
</style>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment