Home › Forums › Calendar Products › Events Calendar PRO › wp_nav_menu disappear only in events pages
- This topic has 25 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
May 20, 2013 at 9:53 am #49043
Roberto
Participanthi, i’m testing for install second license of version and i see that i’ve got a strange situation.
http://aigapadova.omniaoffice.com/?tribe_events=prova-evento the single event don’t give any issue
with event pages that uses ecp_page_template.php the wp main menu disappear.http://aigapadova.omniaoffice.com/?tribe_events_cat=eventi-vari
menu code is a standard menu:wp_nav_menu( array( ‘theme_location’ => ‘main-menu’, ‘menu_class’ => ‘mainnav superfish’ ) );
what could be the issue?
May 20, 2013 at 10:51 am #49054Barry
MemberIt’s hard to say without seeing how your theme is structured, but if that line of code isn’t called (by ecp-page-template.php – which could happen if it is not for instance inside your theme’s header.php template or you don’t have that template) then that might explain this.
May 20, 2013 at 11:10 am #49060Roberto
ParticipantIt is included in header.php. I’ve try to add manually in the page-template.php and i have same missing menu presentation 🙁
May 20, 2013 at 4:25 pm #49108Barry
MemberIt’s hard to say, I suspect though the problem is somewhere in the theme code or else a conflict – Twenty Twelve for instance uses pretty much the same call to wp_nav_menu() – it works without issue even when relocated from header.php to ecp-page-template.php.
May 20, 2013 at 9:46 pm #49126Roberto
ParticipantI understand. the strange thing is that the ecp-single-template.php loads the menu without problem.
May 21, 2013 at 6:35 am #49150Barry
MemberRight – which, really, is exactly what happens with a default theme such as Twenty Twelve. Is the code where you register the nav menu conditional in any way?
May 21, 2013 at 7:11 am #49163Roberto
Participantif i replace the code with wp_nav_menu( ); removing the parameters it works. The problem is the array parameter: ‘theme_location’ => ‘main-menu’. With this one only in this page disappear.
May 21, 2013 at 7:24 am #49170Barry
MemberAre you able to share the code surrounding your register_nav_menus() call (if that is what you are doing)?
May 21, 2013 at 7:26 am #49171Roberto
ParticipantI’ve activated debug. as u can see the event single is good:
http://aigapadova.omniaoffice.com/?tribe_events=prova-evento
the event page contains errors:
http://aigapadova.omniaoffice.com/?tribe_events_cat=eventi-variMay 21, 2013 at 7:29 am #49174Barry
MemberOK … and are you able to share the code where your menus are registered?
May 21, 2013 at 7:33 am #49175Roberto
Participantinside functions.php
register_nav_menus(
array(
‘main-menu’ => __( ‘Main Menu’ ),
‘footer-menu’ => __( ‘Footer Menu’ )
)
);May 21, 2013 at 7:35 am #49176Barry
MemberOK – my fault for not being clear enough 🙂 – it would be great to see the whole file so I can see if there are any problems that prevent that snippet from running.
May 21, 2013 at 7:36 am #49178Roberto
ParticipantUpps sorry! if u want i can share all the theme folder. where i can share?
May 21, 2013 at 7:38 am #49180Barry
MemberYou could email it to us – [email protected] (if so, mark the email for my attention and please include a link back to this thread) – or else you could upload it using a service like droplr.com (you could then share the link from within a private reply).
May 21, 2013 at 7:50 am #49183Roberto
Participantsent, from venice with need of help 🙂
-
AuthorPosts
- The topic ‘wp_nav_menu disappear only in events pages’ is closed to new replies.
