Menu problem
-
Hello,
I installed your plugin first thing, made a few tests, and everything was fine.
Then I created somes pages and their equivalent in English ( meaning I did not keep the pages I created first just for the sake of testing but made new ones, linked to the French pages).
I also had to dasactivate polylan once.After those 2 events, the second menu won’t appear anymore, it sticks to french and won’t work at all, although everything is allright with pages.
It looks like Polylang is not aware of pages or posts erased : whn I look the setting pages, it keeps telling me there are 19 posts in the website althoug there are only 2. same thing for pages, it gives the old number, although I erased many.
I tried to look n the database, but cannot see where the polylang data are stored.
Please help
Thanks
-
the english menu called Main http://www.esprit-manager.com/em.jpg
And I am using this theme : http://www.gt3themes.com/wordpress/skew-creative-one-page-multipage-wordpress-theme/
It’s certainly an Ajax problem. Could you deactivate the Ajax of your theme. Does your menus work?
Everything works perfectly but this English menu in the header.
I don’t know how to desactivate this Ajax, and won’t it impair the theme a way or another as this is a one page theme ?
Much more an incorrect usage of wp_nav_menu of the the theme author.
But to be sure could you deactivate Polylang? Then assign the english menu to your main menu.
What happens? Does your theme display the english or the french menu.I did
So the english website is diplayed but not the header menu, stays in French
footer menu is the english oneSo what can I do ?
Thanks so much for guiding me through this…
It’s a bug in your theme. Please report this bug to the Skew theme author. You can give him this link: Incorrect usage of wp_nav_menu.
The theme author does the things correctly for the footer but not for the main menu.If you want to fix this bug fastly search in your theme the
register_nav_menu
and thewp_nav_menu
. And modify the location ofwp_nav_menu
according to the location ofregister_nav_menu
.
See: http://nimb.ws/Wr0dOwThanks, I’ll try to do this and keep you informed of the result.
Have a nice dayHello Chrystl,
So the theme author pretends it is your plugin which is not coded as it should, and he won’t help….
Too bad, I am going nowhere, so I just have to find some other solution for this website.
But I wanted to tell you anyway that your plugin is great and easy to use, and I appreciate the time you took to try and help me out.
Have a nice day
Cécile
If you want to fix this bug fastly search in your theme the register_nav_menu and the wp_nav_menu. And modify the location of wp_nav_menu according to the location of register_nav_menu.
Did you find these 2 functions in your theme?
Could you paste them in this topic.I never could find the register_nav_menu function, I searched everywhere in every php file, nothing.
A friend told me maybe this was done through js, but I could not find something like this in the js files (don’t know what to look for really in js, very weird for me).As to the other function, I found one instance in the header.php file, that says :
<nav class=”navmenu”>
<?php
wp_nav_menu( array(
‘container’ =>false,
‘theme_location’ => ‘main_menu’,
‘menu_class’ => ‘menu’,
‘echo’ => true,
‘before’ => ”,
‘after’ => ”,
‘link_before’ => ”,
‘link_after’ => ”,
‘depth’ => 3,
‘walker’ => new gt3_description_walker())
);
?>
</nav>and in the footer.php file I found :
<div class=”footer_menu”>
<?php
wp_nav_menu( array(
‘container’ =>false,
‘theme_location’ => ‘footer_menu’,
‘menu_class’ => ‘menu’,
‘echo’ => true,
‘before’ => ”,
‘after’ => ”,
‘link_before’ => ”,
‘link_after’ => ”,
‘depth’ => 1,
‘walker’ => new gt3_description_walker())
);
?>
</div>I also fiound this in the front-page-header.php file (it is a one page website) that says :
<nav class=”navmenu”>
<?php
wp_nav_menu( array(
‘container’ =>false,
‘menu_class’ => ‘menu’,
‘echo’ => true,
‘before’ => ”,
‘after’ => ”,
‘link_before’ => ”,
‘link_after’ => ”,
‘depth’ => 3,
‘walker’ => new gt3_description_walker())
);
?>
</nav>the menu is not mentionned at all in the functions.php file.
the gt3 thing is a builder included in this theme.
Sorry I cannot find the register function, I suppose not much can be done without it ?
Yes, it’s exactly the bug that I described. The theme forgets the theme location.
Anyway go in the front-page-header.php file. In the code that you give me you must add just the line below:
<nav class="navmenu"> <?php wp_nav_menu( array( 'container' =>false, 'theme_location' => 'main_menu', // add this line to fix the bug 'menu_class' => 'menu', 'echo' => true, 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 3, 'walker' => new gt3_description_walker()) ); ?> </nav>
Does it work?
I am not at home just now, no access to the FTP, I’ll do it tonight and I’ll tell you.
THANKS
YES, you were absolutly right, it works perfectly now !!!
Sorry I was not able to find the missing part myself…
Thanks again Crystl, you(re the boss !!!
I’m glad. Please could you inform your theme author of how to fix their bug you can forward them the link of this topic.
And don’t forget to mark your topic as “resolved”.
I did send all informations to the theme dev.
Thanks
- The topic ‘Menu problem’ is closed to new replies.