2017 © Pedro Peláez
 

wordpress-plugin acf-cover-media

Easy, consistent cover media fields for WordPress and ACF Pro 5.

image

mwdelaney/acf-cover-media

Easy, consistent cover media fields for WordPress and ACF Pro 5.

  • Friday, February 3, 2017
  • by MWDelaney
  • Repository
  • 2 Watchers
  • 3 Stars
  • 246 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Advanced Custom Fields Cover Media

NOTE: This plugin is very much a work in progress., (*1)

A WordPress plugin that provides Easy, consistent cover media fields for WordPress and ACF Pro 5., (*2)

Requirements

  1. WordPress 4.5+
  2. Advanced Custom Fields Pro 5

Usage

This plugin requires a small change to your theme:, (*3)

Template Tag

Add the following template tag wherever you want cover images to appear in your theme:, (*4)

<?php acfci_cover(); ?>

In order for the cover image to look right, its immediate parent should have something like the following css:, (*5)

height: 100vh;

Layout Classes

Layout classes are added to the body tag and can be used to style the cover image in your theme's CSS, (*6)

Change where the Cover Image fields appear

By cover images are enabled for Pages, to define which post types cover images should be available on, declare theme support:, (*7)

 $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 );

The Versions

03/02 2017

dev-master

9999999-dev https://github.com/MWDelaney/acf-cover-media

Easy, consistent cover media fields for WordPress and ACF Pro 5.

  Sources   Download

MIT

The Requires

 

plugin wordpress advanced custom fields

05/08 2016

1.0

1.0.0.0 https://github.com/MWDelaney/acf-cover-media

Easy, consistent cover media fields for WordPress and ACF Pro 5.

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

plugin wordpress advanced custom fields