Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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?

    #809376

    As 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?

    #810011

    Hi,

    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 probably

    Best regards,
    Basilis

    #810707

    I 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.

    #811514

    Hi Watermelon01,

    But do you use the Advanced Layout Builder then on those pages?
    Thank you for sharing!

    Best regards,
    Victoria

    #812154

    Yes, 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.

    #812273

    Hi Watermelon01,

    Thanks again! Glad you got it working for you! :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.