Skip to content

Commit 030a4b4

Browse files
committed
Update README
1 parent f14ff88 commit 030a4b4

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

README.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
# ACF Flexible Content Title
22

3+
- [Changing the Field Used](#what-field-does-the-title-come-from)
4+
- [Installation](#installation)
5+
- [Screenshots](#screenshots)
6+
37
Display the content of a text sub field in the title bar of your Advanced Custom Fields flexible content sections to make editing your page sections easier to navigate.
48

5-
![Expanded Flexible Content Layout with Title Field](/screenshots/flexible_content_expanded.png)
9+
I recommend pairing this with a plugin that will help you collapse all of your flexible content sections, such as [ACF Repeater & Flexible Content Collapser](https://wordpress.org/plugins/acf-repeater-flexible-content-collapser/).
610

7-
![Expanded Flexible Content Layout with Title Field](/screenshots/flexible_content_overview.png)
11+
## Usage
812

9-
I recommend pairing this with a plugin that will help you collapse all of your flexible content sections, such as [ACF Repeater & Flexible Content Collapser](https://wordpress.org/plugins/acf-repeater-flexible-content-collapser/).
13+
This plugin looks for a sub field named `section_title` in the flexible content field. Add a field with that name to your layouts, or use the filter to change which sub field is used.
14+
15+
![Section Title Field](/screenshots/section_title_field.png)
1016

11-
# What field does the title come from?
17+
## Changing the Field Used
1218

13-
By default, this plugin looks for a sub field named `section_title` in the flexible content field. You can filter that as follows if you wish to use a different sub field:
19+
You can filter that as follows if you wish to use a different sub field:
1420

1521
```php
1622
// change the sub field used in flexible content field title
@@ -34,3 +40,13 @@ There are three options for installing this plugin:
3440
1. With composer from [Packagist](https://packagist.org/packages/mmirus/acf-flexible-content-title): `composer require mmirus/acf-flexible-content-title`
3541
2. With [GitHub Updater](https://github.com/afragen/github-updater)
3642
3. By downloading the latest release ZIP from this repository and installing it like any normal WordPress plugin
43+
44+
## Screenshots
45+
46+
_Expanded flexible content layout_
47+
48+
![Expanded Flexible Content Layout with Title Field](/screenshots/flexible_content_expanded.png)
49+
50+
_Overview of flexible content layouts_
51+
52+
![Expanded Flexible Content Layout with Title Field](/screenshots/flexible_content_overview.png)
3.54 KB
Loading

0 commit comments

Comments
 (0)