How to remove the limit on the number of menu items

This topic has 12 replies, 4 voices, and was last updated 5 years, 2 months ago ago by Rose Tyler

  • Avatar: dmcom1
    dmcom1
    Participant
    February 17, 2019 at 12:35

    Hi. I need your help! The button “Save menu” has stopped working” after the creation of the 170 points in the Secondary menu. After deactivating the XStore template and activating the free wordpress template, the “save menu” button works again. It is clear that the reason lies in the website template. Help find and fix this limitation.

    Please, contact administrator
    for this information.
    11 Answers
    Avatar: Muhammad Zaki
    Muhammad Zaki
    Support staff
    February 17, 2019 at 13:48

    Hello,

    Thanks for being our customer.

    If you can’t save the menu it means that you reached max input vars limit. Please try to increase max input vars http://prntscr.com/by3tat and check if it helps.

    Regards

    Avatar: dmcom1
    dmcom1
    Participant
    February 17, 2019 at 15:23

    Hi! max input vars = 100000
    The hosting provider said that there is no problem on their part. After all, when you deactivate the site template everything works fine.
    The “Save menu” button stops working after adding 170 menu items only in the XStore template.
    And the problem is not even that the menu is not saved, and the button itself stops responding to pressing.
    What should be done in this case?

    Avatar: dmcom1
    dmcom1
    Participant
    February 17, 2019 at 15:26

    For example, with the template “Twenty Nineteen” button is active, after pressing the page is reloaded and the menu is saved.
    In General, I have already studied the problems that can affect the restrictions, but it seems in my case something else, as the hosting provider has no such problems.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 18, 2019 at 11:51

    Hello,

    Default theme does not have any additional options for the menu items that’s why it does not require additional resources. Like workaround, you can try to create a mega menu using static block option https://youtu.be/f07MBdnFPfk instead of tons of items in the menu panel
    Or provide FTP access to your site and I’ll pass this to our developers to check the problem with this number of items in more details.

    Regards

    Avatar: dmcom1
    dmcom1
    Participant
    February 18, 2019 at 22:07

    Hello,

    Thanks for the tip!
    Decided to try to create a mega menu using the static block option. But faced with another unacceptable error in the template. The H2 tag is inside the link. This is unacceptable in SEO for links to the main menu, especially in the header of the website. Tried to find and replace tag in file xstore/framework/shortcodes/menu-list-item.php. But I could not find this tag and fix the error. I need to replace the H2 tag with the SPAN tag. Tell me, please, where can I do it?

    Screenshot:
    1. https://prnt.sc/mmvtwa
    2. https://prnt.sc/mmvpzl

    Please contact administrator
    for this information.
    Avatar: dmcom1
    dmcom1
    Participant
    February 19, 2019 at 14:50

    Hello,

    It is also impossible to set the normal encoding for Russian text in widgets.
    If you create a mega menu using the static block option, the text in the source code will look like this: https://prnt.sc/mn6mai , https://prnt.sc/mn6m2z .
    If in “Massive Panel” set “Characters Decoding-enable to fix problems with language diacritical marks” to “ON” https://prnt.sc/mn6pb2 , then in General all text turns into signs “?”: https://prnt.sc/mn6sj1 , https://prnt.sc/mn6sqv .
    The template is good, but so many small problems for the Russian-speaking buyer, some of which inhibits the work and negates all efforts.
    The first version of the encoding causes problems in SEO promotion. The second version of the encoding is not suitable for work at all.
    We do not know how to be, without your help can not do.

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 19, 2019 at 19:02

    Hello,

    1) You can choose what tag to use a) http://prntscr.com/mnaq39 b) http://prntscr.com/mnaqsh

    2) Actually, we had the user with a similar question https://codecanyon.net/item/massive-addons-for-visual-composer/14429839/comments?page=81&filter=all#comment_19197773
    MA support told that “issue does not affect SEO or website users”. But if such encoding is not suitable for you then provide us with FTP access and we’ll try to change it.

    Regards

    Avatar: dmcom1
    dmcom1
    Participant
    February 19, 2019 at 19:50

    Hello,

    Thank you for your help! The “DIV” and “P” tags are not suitable, it is better to use the “SPAN” tag in the menu, but still it is better than the “H2″tag.

    But with the encoding your programmers seems to have corrected Russian text distorts. However, now I need to know what and where your programmers have fixed. Because after updating the template all these changes will be lost.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 20, 2019 at 10:29

    Hello,

    1) We have added span to the list by adding the following code to the child theme functions.php

    add_filter('vc_font_container_get_allowed_tags','et_custom_allowed_tags');
    function _vc_font_custom_allowed_tags() {
    		$allowed_tags = array(
    			'h1',
    			'h2',
    			'h3',
    			'h4',
    			'h5',
    			'h6',
    			'p',
    			'div',
    			'span',
    		);
    		return apply_filters( 'et_custom_allowed_tags', $allowed_tags );
    	}

    2) We have made some changes in xstore/framework/shortcodes/menu-list.php and menu-list-item.php to allow WPBakery tags option for our Menu list element. These changes will be also included to the next theme update. I’m not sure if this fixed the encoding problem but if everything is ok for you then we are glad to hear that.

    Regards

    Avatar: dmcom1
    dmcom1
    Participant
    February 20, 2019 at 12:02

    Hello,

    Thank you for your help!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 20, 2019 at 13:49

    Hello,

    You’re welcome!

    Regards

  • Viewing 12 results - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.