Home › Forums › Add-ons › Flexible Content Field › Hook into flexible content field from parent Theme? › Reply To: Hook into flexible content field from parent Theme?
I gave an example here for removing layouts https://support.advancedcustomfields.com/forums/topic/disable-layout-from-showing-in-template/
To add layouts you would need to have the layouts saved in a JSON file or you would need to create them in PHP. You can then load this field group and append the layouts from the flex field to the flex field of the parent theme group.
I’m really not sure how you could manage this because there will be no way for the parent theme to know what field group to merge layout from. This is probably something that would need to be coded into each child theme separately.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We’re reaching out to our multilingual users to ask for help in translating ACF 6.1. Help make sure the latest features are available in your language here: https://t.co/TkEc2Exd6U— Advanced Custom Fields (@wp_acf) May 22, 2023
© 2023 Advanced Custom Fields.