Enable Featured Images for Any Theme
Turns on featured image (post thumbnail) support for themes that do not declare it.
Opens WPIDE on
Code
add_action( 'after_setup_theme', function () {
add_theme_support( 'post-thumbnails' );
}, 20 );
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.