Download the PHP package mwdelaney/acf-complex-titles without Composer
On this page you can find all versions of the php package mwdelaney/acf-complex-titles. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mwdelaney/acf-complex-titles
More information about mwdelaney/acf-complex-titles
Files in mwdelaney/acf-complex-titles
Package acf-complex-titles
Short Description Complex titles with previews for WordPress content types using Advanced Custom Fields Pro 5.
License MIT
Homepage https://github.com/MWDelaney/acf-complex-titles
Informations about the package acf-complex-titles
Advanced Custom Fields Complex Titles
A WordPress plugin that adds custom fields to create a formatted title
This plugin creates custom fields below the title Pages and automatically replaces the_title()
when called from inside the loop.
Requirements
- WordPress 4.5+
- Advanced Custom Fields Pro 5
Usage
The following formatting options are included at this time:
- Word or Phrase (the actual content, don't remove this one)
- Emphasize
- Size (small, medium, large)
- Alignment (left, right, center)
The following layouts are also included for headline groups:
- Alignment
Add fields
To add fields to the title(s), extend the Fields class as follows:
Enable only some fields
To remove fields from the available list, declare theme support for only the fields you wish to use:
Enable only some layouts
To remove layouts from the available list, declare theme support for only the layouts you wish to use:
Change which post types get Complex Titles
By default complex titles are enabled for Pages, to define which post types complex titles should be available on, declare theme support:
Templates
Basic templates and styles are included. These templates are designed to be simple for styling via your theme. To override the included templates, copy the template(s) you wish to override from templates
to your theme in a sub-directory called ct-templates
Styles
This plugin ships with basic styling for the default fields. These styles are enqueued on the front-end and in the WordPress admin so that the Complex Title preview area matches the front-end as closely as possible.
To dequeue these styles and replace them with your own, add the following to functions.php