exclude page from main menu
-
Hi everyone,
with the plugin activated any new page is automatically added to the main menu. Is there some easy way to remove certain pages from the menu without editing the sources? I want some pages to appear only in a secondary menu, like imprint, about us and so on.
I cannot edit the main menu with the WP-Admin and i don’t see a way either to do so with the polylang-settings.
I found a thread describing the same issue but without a solution.
Thanks for any help on this topic!Cheers, Volker
-
Sorry, i forgot to mention: i use the MH Newsdesk lite – Theme.
Hi
It has nothing to do with Polylang. It’s a WordPress menu option. Go in Appearance > Menus: Menus settings, then uncheck “Automatically add new top-level pages to this menu”.Hi Chrystl, thanks for the quick reply! Unfortunately the issue seems indeed to have to do with polylang: if the polylang-plugin is active i cannot edit anything in the wordpress-menu-settings, all options on the Appearance->Menus – Page are deactivated as you can see in this screenshot. Polylang seems to handle all menu-options itself.
It’s maybe an issue with your theme which uses custom menus and not the WordPress menus.
Could you switch on Twenty Fifteen? Have you access to your menus?
no, same issue with any theme 🙁
Ok, i found some kind of a workaround: pages kept as drafts do not appear in the main menu but can still be viewed in the frontend if you enter the permalink. so if i manually add links to the footer those pages are accessible.
but in this case i have to check the language by myself which means i have to add some logic to footer.php. I don’t really like this, so if anyone can come up with a more sophisticated solution, you are very welcome!Cheers, Volker
I tested MH Newsdesk lite with Polylang and it works. The same with Twenty Fifteen.
http://nimb.ws/EQUxVs
http://nimb.ws/cman1p1) Did you make your test with only Polylang and the theme with the other plugins deactivated?
2) Does MH Newsdesk lite works with Polylang without any custom code?
Or it’s maybe a misuse of Polylang, there the getting started:
http://plugins.svn.wordpress.org/polylang/doc/polylang-getting-started.pdfNo, even with all plugins except polylang deactivated i still cannot edit the menu. I did not alter the theme except for some custom css.
As soon as i deactivate polylang (with all other plugins still actve) i can access all menu-options at Appearance->Menus.
Also, as far as i can see i did configure polylang according to the manual.I have the same effect if i switch to another theme (twenty fifteen), so i think is has to be an issue with polylang, although it did not happen in your environment. Which is strange, the only difference i can see is that we use different language-versions of wordpress.
Anyway, as i said before i found a workaround. If i find out what the problem is i will let you know. Again, thanks a lot for your help!
Cheers, Volker
The topic ‘exclude page from main menu’ is closed to new replies.