Some improvements
-
Thanks for this handy tool.
I stumbled upon some problems during testing:
1. I got some PHP errors like this “Use of undefined constant option_2 – assumed ‘option_2’ in viewer.php on line 107”. You have to set the parameters for “option_1” and “option_2” in quotes.
Also there’s an error for line 26 where you call “get_fields(option)”. The parameter should also set into quotes.
2. On the theme I tested the plugin, the header has a very high z-index and therefore I can’t see the toggle button to open ACF viewer on front end. I changed the z-index for #acfv-wrap (line36) and #acfv-toggle (line199) to “999999” and for #acfv-click-layer to “999998” in all theme CSS files and now it works.
Hope this helps for improving your plugin
Thomashttps://www.ads-software.com/plugins/advanced-custom-fields-viewer/
- The topic ‘Some improvements’ is closed to new replies.