classic-theme-media-images
Installation
SKILL.md
Classic Theme Media and Images
Use this when adding or reviewing featured images, attachment images, custom image sizes, responsive image attributes, image accessibility, or theme asset images in a classic PHP theme.
When to Use This Skill
- Adding featured image support.
- Rendering thumbnails in archives, cards, heroes, or singular templates.
- Registering custom image sizes.
- Replacing hand-built
<img>tags with WordPress image functions. - Fixing layout shift, oversized images, missing alt text, or broken responsive image output.
Enable Featured Images
Enable post thumbnails during theme setup.
add_action( 'after_setup_theme', 'mytheme_setup' );