-
AuthorPosts
-
January 27, 2016 at 11:29 pm #573311
Hello,
I am trying to add additional pages to the Main Menu. After I update Menus and go to a page it appears that all page names keep repeating down the page. When I go back to Menus the page I added is gone from the Menu Structure and under Theme Locations Enfold Main Menu is unchecked. If I check and update the menus display correctly, but unable to add any more pages.
Your help would be appreciated.
Thanks,
JohnJanuary 28, 2016 at 1:34 am #573375Hi John!
You may have reached your menu limit, try installing this plugin to confirm:
https://github.com/sevenspark/menu-limit-detector/archive/master.zipRegards,
JosueJanuary 29, 2016 at 1:10 am #574211Hi Josue,
Thanks for the response. I changed the variable to 5000 and I still had the same issue. So I then changed the variable to 8000 and still the same problem. However, if I update the Menu through the Customizer I don’t have the problem.
Thanks,
John
January 29, 2016 at 12:35 pm #574450I would suggest disabling all third-party plugins and check if the issue gets fixed, however if Customizer works for you then it wouldn’t be needed.
Regards,
JosueJanuary 29, 2016 at 8:47 pm #574800All plugins are disabled and still the same issue. I can add through the Customizer, but it does not allow me to select as a Mega Menu which is something I require.
January 29, 2016 at 10:56 pm #574824Hi,
Can you please create me a WordPress administrator account? post it here as a private reply.
Regards,
JosueJanuary 29, 2016 at 11:17 pm #574827Thank you
January 30, 2016 at 10:05 am #574962Hi!
Can you try it now? it looks like it got fixed, i’m now able to set it to a menu location and it will remain there after refreshing the page.
Regards,
JosueJanuary 30, 2016 at 5:49 pm #575034Hi Josue,
Hmmm, interesting that you got it to work. I just tried it and still having the same problem. I added 2 pages to the Main menu, saved it and row after row of menu pages appear on the website. Here is the entry for the php.ini file.
;How many GET/POST/COOKIE input variables may be accepted
max_input_vars = 12000Thanks for the help.
John
February 3, 2016 at 6:16 am #576891Hey!
I think it’s working now. I created a new menu and set the theme locations as footer. You can check it here: http://www.test.wealththrunutrition.com/wp-admin/nav-menus.php?menu=57
Cheers!
IsmaelFebruary 3, 2016 at 7:23 pm #577278Hello,
It does not work if you add any additional pages to the Main Menu. After adding additional pages and saving menu the website lists pages across the screen, See the page: http://www.test.wealththrunutrition.com/
The only way to correct is by clicking Theme Locations – Main Menu and saving menu. The only way to add new pages is through the Customizer, which has limited functionality (ie: can’t select as a Mega menu, etc).
Thanks,
John
February 5, 2016 at 10:42 am #578408Hey!
What will happen if you go to customizer and remove all the menu items?
Then try the wordpress regular menus and let us know.
Best regards,
Vinay KashyapFebruary 5, 2016 at 6:15 pm #578652Hi,
I removed all menu items via the Customizer. I then added the items thru the WordPress regular Menu and still have the same problem.
Regards,
John
February 9, 2016 at 10:22 pm #580618Hey!
I checked the page in private content and not sure what you want to achieve, as it looks quite weird with so many menu items on the whole page. Maybe you reached menu limit for WordPress. Try this in your .htaccess file:
php_value max_input_vars 5000
If that does not help then try this in php.ini file:
suhosin.post.max_vars = 5000 suhosin.request.max_vars = 5000
or this:
max_input_vars = 5000
and then restart server if necessary.
Best regards,
AndyFebruary 9, 2016 at 10:43 pm #580623Hi,
I had already changed the max_input_vars to 12000 and also tried the suhosin per your email with the same results. As I stated earlier I can add menu items through the Customizer and the menus work correctly. However, when adding through the standard WP menu function I get the mess that currently shows on my website. I would use the Customizer to get around this issue, but I can’t select a page as a Mega Menu.
Thanks,
John
February 10, 2016 at 12:47 am #580681Hi!
does it work for you when activating a default WordPress theme instead?
Best regards,
AndyFebruary 10, 2016 at 1:11 am #580695Hi,
I activated TwentyFifteen and added a few pages to the Menu and it works fine.
John
February 10, 2016 at 1:16 am #580698Hi!
are we allowed to activate TwentyFifteen on your website for testing purposes?
Cheers!
AndyFebruary 10, 2016 at 1:17 am #580699Yes, but it is already activated.
February 12, 2016 at 7:28 am #582049Hey!
Is the menu created prior to installing the theme? Please activate a default theme, delete the main menu then activate Enfold. Create the menu again from scratch.
Best regards,
IsmaelFebruary 19, 2016 at 7:34 pm #586268Hello,
The menu was not created prior to installing the theme. It was created from scratch. Twenty Fifteen is active, I deleted the menus and then activated Enfold. I again created the menu and still have the same issue. Please see the link: http://www.test.wealththrunutrition.com/
Thanks,
John
February 26, 2016 at 9:21 am #589602Hi!
Please try to remove all special characters (ex: ®, ™ etc) in the menu item label. Set the theme location then save changes. Let us know if it helps.
Cheers!
IsmaelFebruary 26, 2016 at 10:12 pm #590036Hi,
Ok, I removed all the special characters and still the same issue. There are 70 items in the Menu Structure. Whenever I try to add one more item to the menu I get the same mess.
Thanks,
John
February 27, 2016 at 9:31 am #590199Hey!
We checked the php settings and the max_input_vars value is set to 1000 which is not enough for the number of items that you have in the main menu. Please ask your hosting provider to increase the max_input_vars to at least 5000. Refer to this link: http://kriesi.at/documentation/enfold/enfold-menu-item-limit/
P.S: Sorry about the “special character” suggestion.
Best regards,
IsmaelFebruary 27, 2016 at 5:32 pm #590261Hello,
I’m not sure where you are seeing that. When this first starting happening I changed the max_input_vars in the php.ini file located in public_html.
; How many GET/POST/COOKIE input variables may be accepted
max_input_vars = 12000Thanks,
John
February 27, 2016 at 6:20 pm #590270Hello,
I did speak with my provider and they confirmed that there is only one php file and the max_input_vars is set to 12000.
Thanks,
JohnFebruary 29, 2016 at 5:26 pm #590973Hi!
1200 is not enough, as Ismael already said. Change it to at least 5000. Let us know when you are done with it.
Cheers!
AndyFebruary 29, 2016 at 5:28 pm #590977Hello,
It is 12000! I sent a private link in my prior email with the php information.
March 2, 2016 at 7:34 am #591919Hey!
That’s weird because it is only set to 1000 if I debug it with a plugin: http://www.test.wealththrunutrition.com/?debug-this=phpinfo
The max_input_vars directive may be overridden by another php.ini configuration. Please edit the .htaccess file then add this:
php_value max_input_vars 5000
If I set the “Test” menu as the main menu, it works fine so there’s something wrong with the actual main menu. Please delete that one then use the test menu instead: http://www.test.wealththrunutrition.com/wp-admin/nav-menus.php?action=edit&menu=57
Cheers!
IsmaelMarch 3, 2016 at 2:21 am #592378Hello Ismael,
I doubled checked with my hosting provider again based on your debug information. There was a line of code in the .htaccess file in Test that was overriding the php.ini file in public_html :(
It appears to be working correctly now and thank you for all your help!
Sincerely,
John -
AuthorPosts
- The topic ‘Adding Pages to Main Menu’ is closed to new replies.