Can we create a new builder layout in a child theme functions file using the Layout Builder API? Here is a bit more detail on my question…
I just finished creating a function that is fired off when the theme is activated. It’s job is to setup default pages, a new menu with a few menu items as well as several other time saving tasks. I would like to do the same thing with the Builder. I have a default layout that I will be using for this child theme and I would like to automate it.
My layout consists of five “Content” areas, each separated by a “Divider”. All “Content” areas use “Content from external page” for the “Content Source” and the external page is created in the function mentioned above. I have all the page_id’s when they are created so I can reference them here as well to store the value in the builder option field.
This question is a similar approach to this thread – One page website: http://support.themeblvd.com/forums/topic/one-page-website/
What I like about the builder is that I can toggled the layout if it is a mobile or desktop display because you have the build in show/hide options.
Is there a way to create a new layout using the Layout Builder (API)? Specifically, a new layout using existing framework elements.
- You must be logged in to reply to this topic.