NOTE: This plugin is very much a work in progress.
A WordPress plugin that provides Easy, consistent cover media fields for WordPress and ACF Pro 5.
- WordPress 4.5+
- Advanced Custom Fields Pro 5
This plugin requires a small change to your theme:
Add the following template tag wherever you want cover images to appear in your theme:
<?php acfci_cover(); ?>
In order for the cover image to look right, its immediate parent should have something like the following css:
height: 100vh;
Layout classes are added to the body tag and can be used to style the cover image in your theme's CSS
By cover images are enabled for Pages, to define which post types cover images should be available on, declare theme support:
$landing_page_templates = array(
array (
array (
'param' => 'post_type',
'operator' => '==',
'value' => 'page',
),
array (
'param' => 'page_template',
'operator' => '!=',
'value' => 'template-no-header-image.php',
),
),
);
add_theme_support( 'cover-image-location', $landing_page_templates );