Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/wearerequired/post-header-image/archive/refs/heads/master.zipOn Packagist as wearerequired/post-header-image:
composer require wearerequired/post-header-imageNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WordPress plugin for adding a custom header image to posts. Only supports the block editor. There is no support for the classic editor.
By default, custom header images is only enabled for posts. To add support to other post types use the the 'add_post_type_support()` function. Example for pages:
add_post_type_support( 'page', 'post-header-image' );
Block Editor
- Install npm dependencies via
npm install - Enable watch task with
npm run dev - Build files with
npm run build - Update language file with
npm run pot-to-php. Make sure to runnpm run buildfirst.