Skip to content

Preview the flexible content layout as an image instead of just the layout name from the tooltip when inserting a new layout on a page.

License

Notifications You must be signed in to change notification settings

RobWiddick/ACF-Flexible-Content-Layout-Previews

Repository files navigation

=== Plugin Name ===
Contributors: robertark
Donate link: https://robwiddick.com
Tags: acf, flexible content, preview layout
Requires at least: 4.0
Tested up to: 5.2.2
Stable tag: 5.2.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

See an example of the ACF Flexible Content Layout before you select it!

== Description ==

This plugin allows you to upload image examples to your uploads directory so that your clients (or users) can see
an example of what the ACF Flexible Content Layout looks like in the page editor before they select it. This modifies
the existing tooltip to display an image.

Be sure to review the INSTALLATION guide!

== Installation ==

To install:

1. Upload `acf-fc-layout-previews` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Upload JPG images of your flexible content layouts into your uploads/acf-fc-layouts directory.

NOTE: The name of the image should be the name of the flexible layout with the ".jpg" extension.

For example, if you have a layout "Hero", then you must upload "hero.jpg" into _upload-dir_/acf-fc-layouts.

Another example, if you have a layout titled "Content row with side image", then you must name the image "content-row-with-side-image.jpg"

== Frequently Asked Questions ==

= What types of images are allowed? =

Currently, only jpeg. The file extension must be "jpg" - all lowercase. Example: hero.jpg

= Why isn't this more dynamic? =

I don't have the time. It's on my todo list; feel free to contribute!

= I have a question =

Please submit a support post.

= I want to contribute =

Awesome! Fork the git repo here https://github.com/robertark/ACF-Flexible-Content-Layout-Previews and submit a pull request when ready!

== Screenshots ==

1. This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from
the /assets directory or the directory that contains the stable readme.txt (tags or trunk). Screenshots in the /assets
directory take precedence. For example, `/assets/screenshot-1.png` would win over `/tags/4.3/screenshot-1.png`
(or jpg, jpeg, gif).
2. This is the second screen shot

== Changelog ==

= 1.0.0 =
* Initial release

About

Preview the flexible content layout as an image instead of just the layout name from the tooltip when inserting a new layout on a page.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published