Would be grateful if someone could help with this:
The site is actorshop.net
I’m using Propulsion theme on a website I’ve divided into 3 areas (Education, Corp, Production). I want each of those areas to have their own unique menu.
To give each of the 3 areas their own unique menu, I’ve made 3 custom templates that point to 3 custom headers, all using specific menus.
The problem is when I apply the avia_get_template(); in my custom template, it grabs the generic site header with the menu I don’t want. I want it to grab my custom header and apply it to that particular page.
It’s only when I remove the avia_get_template(); function from my custom template that I’m able to use my own get_header(‘edu’); with the menu I want – but I then of course lose the dynamic function of the avia template.
How can I have my own specific menu and still be able to use the dynamic avia_get_template(); ??
I’m not really sure about this. I’ve tagged Kriesi on the topic as he should be able to shed some light on the correct way to call the different menus for you.
Just to clarify: you do want to use dynamic templates with custom header files included? That might be a little difficult, because there is only one template-dynamic.php file which is used to render all the dynamic templates, by iterating over the different elements.
The only option that comes to my mind is to wrap the get_header() function is this file into an if/else statement and also add the call for the different header within some additional if statemens.
Let me know if this helps, or I got you totally wrong on this one and you are trying to do something different :)
The topic ‘Changing avia_get_template(); function so that I can have multiple menus’ is closed to new replies.