Hide a module in ACF flexible content on the frontend but still keep it in the backend
Author: | Ketchlabs (profile at wordpress.org) |
WordPress version required: | 5.3 |
WordPress version tested: | 6.0.1 |
Plugin version: | 1.0 |
Added to WordPress repository: | 28-07-2022 |
Last updated: | 28-07-2022 |
Rating, %: | 100 |
Rated by: | 1 |
Plugin URI: | |
Total downloads: | 405 |
Click to start download |
About The Project
If you want to test what a layout would look like or not ready to go live with a module. Press the hide icon and it will be hidden to anyone not logged in to WordPress but you can still preview the content.
Installation
- Upload the plugin files to the
/wp-content/plugins/
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress.
How to use it?
Next to the flexible content options “Add Layout” and “Remove Layout” is a new option “Hide / Show Layout”.
Toggling that option will hide or show the layout on the fronted.
Usage
The ACF Hide Layout settings will show under “Tools” if on localhost.
Contact
Luke Ketchen – lukeketchen.com
Project Link: https://github.com/Ketch-Labs/hide-acf-layout
Screenshots
- Page view normal.
- Page view hidden module.
- Settigns page.
Acknowledgments
Hiding icons created by Freepik – Flaticon (https://www.flaticon.com/free-icons/hiding)
Screenshots