Created
April 18, 2025 07:44
-
-
Save KittenCodes/7b53e99932f17899520a862cd165ab73 to your computer and use it in GitHub Desktop.
Fix: Oxygen Classic - WordPress v6.8 prevents changing images in Gutenberg
This file contains 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('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