wp_nav_menu disappear only in events pages

Home Forums Calendar Products Events Calendar PRO wp_nav_menu disappear only in events pages

Viewing 15 posts - 1 through 15 (of 26 total)
  • Author
    Posts
  • #49043
    Roberto
    Participant

    hi, 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?

    #49054
    Barry
    Member

    It’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.

    #49060
    Roberto
    Participant

    It is included in header.php. I’ve try to add manually in the page-template.php and i have same missing menu presentation 🙁

    #49108
    Barry
    Member

    It’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.

    #49126
    Roberto
    Participant

    I understand. the strange thing is that the ecp-single-template.php loads the menu without problem.

    #49150
    Barry
    Member

    Right – 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?

    #49163
    Roberto
    Participant

    if 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.

    #49170
    Barry
    Member

    Are you able to share the code surrounding your register_nav_menus() call (if that is what you are doing)?

    #49171
    Roberto
    Participant

    I’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-vari

    #49174
    Barry
    Member

    OK … and are you able to share the code where your menus are registered?

    #49175
    Roberto
    Participant

    inside functions.php

    register_nav_menus(
    array(
    ‘main-menu’ => __( ‘Main Menu’ ),
    ‘footer-menu’ => __( ‘Footer Menu’ )
    )
    );

    #49176
    Barry
    Member

    OK – 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.

    #49178
    Roberto
    Participant

    Upps sorry! if u want i can share all the theme folder. where i can share?

    #49180
    Barry
    Member

    You 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).

    #49183
    Roberto
    Participant

    sent, from venice with need of help 🙂

Viewing 15 posts - 1 through 15 (of 26 total)
  • The topic ‘wp_nav_menu disappear only in events pages’ is closed to new replies.