Skip to content

Instantly share code, notes, and snippets.

View craigblainwyoming's full-sized avatar

Craig Blain craigblainwyoming

View GitHub Profile
@KittenCodes
KittenCodes / fix-gutenberg-image-2.php
Last active October 6, 2025 13:49
Fix: Oxygen Classic - WordPress v6.8 prevents changing images in Gutenberg
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 */
.wp-block img.ct-image:not([draggable]) {
pointer-events: unset !important;
}
</style>';
}