
-
AuthorPosts
-
June 17, 2017 at 2:51 am #809175
I am building a child theme based on enfold. For pages not using the advanced layout editor I added some elements to page.php immediately within: <div class=’container’> . How can I apply the same modification to pages which use the advanced layout editor? I see that template-builder.php is being used, but it seems the content within <div class=’container’> is being generate external to this. Could you please point me in the right direction to make this simple modification?
June 17, 2017 at 9:02 pm #809376As a follow up to this, I’m wondering what will happen with layout builder content for pages that I create and apply a unique theme template for. I’d like to add unique elements to such pages in the template, but also be able to use the template builder for the content on these pages. How can I use the template builder but still load the content using the page template chosen?
June 19, 2017 at 10:36 pm #810011Hi,
The best option, is to convert those changes you have created as a shortcode, and embed them to a text area inside Advanced Layout builder.
That would help most probablyBest regards,
BasilisJune 21, 2017 at 2:57 am #810707I don’t think you quite understood my question, but I will answer what I was able to figure out on my own for the benefit of others. For some reason, when the ‘default’ template option is chose for a page, and the layout builder is used, it does not follow the normal expected WordPress template hierarchy, but instead defaults to template-builder.php. This is not the case if you use the default editor, which was confusing to me. However, if you create your own custom template files and assign them to the page, it follows the expected hierarchy.
June 22, 2017 at 1:48 pm #811514Hi Watermelon01,
But do you use the Advanced Layout Builder then on those pages?
Thank you for sharing!Best regards,
VictoriaJune 23, 2017 at 4:28 pm #812154Yes, that’s correct. You can use the advanced layout builder and apply specific page templates you’ve created to a page, and it will use that template. I’m not sure why when not applying a specific template the page would not default to the page.php template as normal when the layout builder is used (I’d have to dig through the avia functions, something I don’t have time for), but this is an effective work around.
June 23, 2017 at 7:34 pm #812273Hi Watermelon01,
Thanks again! Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.