Skip Navigation

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

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 6 années et 8 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Ce sujet contient 6 réponses, a 2 voix.

Dernière mise à jour par vimalS Il y a 6 années et 7 mois.

Assisté par: Shane.

Auteur
Publications
#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

Les langues: Anglais (English )

Fuseau horaire: 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

Les langues: Anglais (English )

Fuseau horaire: 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

Les langues: Anglais (English )

Fuseau horaire: 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.

lien caché

Please let me know if this helps.
Thanks,
Shane

#641747

Thanks!!