Skip Navigation

[Resolved] Content Template global for title and Footer

This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 4 replies, has 3 voices.

Last updated by Francisco Ramón Molina Busquiel 7 years ago.

Assisted by: Nigel.

Author
Posts
#590542

Is there any way with Toolset to put a global Content Template for the title of the page and another Global Content Template for the footer of the page?
Thanks for your help.
Best regards,
Francisco R.

#590774

No, Toolset is editing usually the_content().
Adding the Toolset to other parts requires Custom Code.

To display Views or Content Templates with PHP you can use this:
https://toolset.com/documentation/programmer-reference/views-api/

This means you'll need to edit the footer.php and header.php of your theme and call those items in there with PHP.

Another possibility to style the whole site (header and footer inclusive) is to programmatically include Layouts in your Theme.
I suggest this only if you start a theme from scratch.
If so, let me know, I can hep with it.
Actually, you can already see it workin on this sample theme, or in the Toolset Starter:
hidden link

But as said, this is only possible with PHP.

#590872
2017-11-18_17-36-30.jpg

Thanks for your information Beda.

Look at the screenshot.
This renders a content template using the DIVI text module, but if I want to do the same in php, what would the function be like?

Thanks for your help.

#591179

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Francisco

Beda is on vacation.

If you want to output Views content in a PHP template file you can use the standard WordPress function do_shortcode (https://developer.wordpress.org/reference/functions/do_shortcode/), e.g.

do_shortcode( "[wpv_post_body view_template='userregister']");

Just be careful with single and double quotes.

#591184

I hope that Beda enjoys her vacation a lot. 🙂
Thank you very much for your help Nigel.
Best regards,
Francisco R.