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 use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.