Tagged: modify, page template
-
AuthorPosts
-
March 30, 2018 at 5:11 pm #935365
Hi,
A client wants to add 3 sections as standard at the bottom of the page template (a content slider of books, three call to action boxes and a sign up newsletter box) – – LINK to see example of 3 sections want on page template AT THE BOTTOM OF THIS POST ).I am guessing I will be using the template-builder.php file but beyond that could you give me some advice how I do this bearing in mind they will be using the Advanced Layout Builder?
Kind regards,
PeterMarch 30, 2018 at 5:44 pm #935372Hello. If you need to automate the template process, I’d be interested to hear Enfold’s response. To this point, I’ve accomplished this using one of the following.
1. Create a post\page with the custom section. Use the Duplicate Post plugin to clone this template page, for all future posts\pages. -OR-
2. Create the custom section, save it as a template, and manually add it to each page as desired.The thing I’m interested in, as I’m sure you are as well, is how to dynamically update all posts\pages assigned to a template. If you\we decide to adjust the template, how does this get pushed out to all posts\pages under that template?
March 30, 2018 at 6:19 pm #935389Hi WP Turned Up
Thanks for the great ideas – But as you mentioned yourself – I want ONE place to do future updates as well.
So maybe a custom section added via function.php and a “exclude” ID same place.
I even considered “Widget on pages” plugin – But I don’t thing that Avia Adv. Layout would work?? with a WOP Shortcode?We already have the “Template” … section but Authors forgets to add them and an update is huge work – all 260 pages!!! – No Thx :-)
April 2, 2018 at 4:08 am #935877Hi,
Edit the footer.php file or the template-builder.php file and then wrap the shortcodes inside the do_shortcode function. Unfortunately, global templates are not available at the moment so you’ll have to do this manually for now.
do_shortcode function:
// https://developer.wordpress.org/reference/functions/do_shortcode/set the builder to debug mode to extract the actual elements’ shortcode.
// https://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/Best regards,
IsmaelApril 9, 2018 at 5:29 pm #939325QUESTION RESOLVED.
Decided to create the sections as a widget which client could add as they wanted it – I anticipated the client would come back later asking how they could have pages without the widget embedded!
The debug mode was very helpful to create the widget, thanks!!
April 10, 2018 at 6:56 am #939604 -
AuthorPosts
- You must be logged in to reply to this topic.