Skip Navigation

[Resolved] How to add Two different header & footer on two pages without layout plugin

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user wanted to know if it was possible to create multiple headers using our Types and views plugins.

Solution:

Unfortunately this is not possible with our Types and Views plugin and will need to be done with some custom coding .

You can follow the instructions in the link below as it should be able help you.
https://www.webascender.com/blog/create-multiple-headers-footers-wordpress/

This support ticket is created 6 years, 9 months 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 6 replies, has 2 voices.

Last updated by vimalS 6 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#632372

I have two pages for which I would like to add different header and footer.
How to achieve this using types,view beta?

#632632

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Vimal,

Thank you for contacting our support forum.

When you refer to header are you referring to the page title or the menu area.

Please let me know.
Thanks,
Shane

#637640

I am talking about header.php

#638713

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Vimal,

Yes you will need to us the function here in order to do it.
https://toolset.com/documentation/programmer-reference/views-api/#render_view

This will allow you to display the view inside the php template.

Please let me know if this helps.
Thanks
Shane

#638977

I have 1 header already which is header.php
Now, for 1 page I would like to create different header.. Do I need to write code in view? and call that view using render_view?
Note : I have created content template using wp types

#639075

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Vimal,

I think I understand what you want to achieve now.

I was able to do some searching and found this link below and it should be able to guide you through this.

hidden link

Please let me know if this helps.
Thanks,
Shane

#641747

Thanks!!