Wp menu dont' see , menu problem


#1

Look at the two pictures.
I do not know why but only in the pages of rtmedia all the menus on my site disappear.

MENU on my site:

function come_appare_menu_main () {  
    wp_nav_menu(array(  
        'container' => ul,                            
        'menu' => 'The Main Menu',                       
        'menu_class' => 'navi-menu menu-main',          
        'menu_id'        => 'menu-nav-main',  
        'theme_location' => 'menu_main',                   
        'walker' => new sotto_menu_simbolo,              
        'fallback_cb' => 'come_appare_menu_main_fallback'         
    ));  
}

and on themplate I insert:

<nav id="menu-main-contenitore" class="cont-menu" role="navigation"> <?php if (come_appare_menu_main()){ come_appare_menu_main();} ?> </nav>

I have another menu in the footer and also that disappears.
going to see the site code, html shows up in this way:

  
 

I disabled all plugins, taking only buddies and rtmedia.
Avviamente with another theme, everything is working correctly …

I tried to use the wp statement:

wp_nav_menu( array( ‘theme_location’ => ‘menu_main’ ) );

both without the location of the menu, and in this case is displayed as a menu but generic and not specific; either by entering the correct location, and in this case it disappears.

In the menu, use the following statement to the template:

essentially are like normal pages (page.php)
and even if not practically nothing mettessi pages in addition to the menu, it does not appear anyway.

function rtmedia_main_template_include($template, $new_rt_template) {  
   // return get_page_template();// defoult page   
            global $wp_query;  
            $wp_query->is_page = true;  
    if   ( function_exists( 'bp_is_active' ) )   
         { return locate_template('/rtmedia/rtmedia_template_buddy.php'); }  
    else { return locate_template('/rtmedia/rtmedia_template.php');}  
}  
add_filter('rtmedia_main_template_include', 'rtmedia_main_template_include', 20, 2);   

I’m trying to integrate your plugin in my theme. But I continue to find a variety of difficulties
Please, I have no idea what is causing the problem or even where to go to check out.
In the support forum I have not found anything associated to this problem.
Thank guns

Attachment Link(s):

http://rtcamp.com/wp-content/uploads/rtMedia/topics/64705/2014/04/rtmedia.menu-prob-normal-menu.jpg

http://rtcamp.com/wp-content/uploads/rtMedia/topics/64705/2014/04/rtmedia.menu_.jpg


#2

It is working properly with WordPress default theme, right??
If so, please contact your theme developers. It is theme specific issue.
rtMedia has nothing to do with header and footer menus. It only integrates with BuddyPress menus.

Have you override rtMedia templates in your theme?? If so, just try removing them and check again.


#3

Yes, it works on the default theme.
As I marked in the code posted above, I have integrated the template rtmedia through the code that you suggested.
Then, I created the page template along the lines of the page.php theme.

function rtmedia_main_template_include($template, $new_rt_template) {  
   // return get_page_template();// defoult page   
            global $wp_query;  
            $wp_query->is_page = true;  
    if   ( function_exists( 'bp_is_active' ) )   
         { return locate_template('/rtmedia/rtmedia_template_buddy.php'); }  
    else { return locate_template('/rtmedia/rtmedia_template.php');}  
}  
add_filter('rtmedia_main_template_include', 'rtmedia_main_template_include', 20, 2);   

then ,I used the main.php page and I changed the div on this page for incorporate in the theme.
Essentially I have tested the problem without the main.php page online, but the error persists.
Should I try again by changing the template in any way for integration.

The problem is that I am the theme developers.
And I admit to not being very practical codes.


#4

I think you just need to check the both template code that are being used in above screenshots. Is the nav menu your custom code?? Just inspect the element in both the pages and check from where, on which condition it is not rendering the menu.


#5