The situation is the following - on the website maryno.solisun.ru there is a problem in the mobile version of the site:

If you are on the main page of the site, then when you click on the burger you see the dropdown menus already opened, on other pages of the site there is no such problem.

Closed due to the fact that the topic is off topic by kizoso , default locale , 0xdb , cheops , Kosta B. 2 Aug '18 at 8:59 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - kizoso, default locale, 0xdb, cheops, Kosta B.
If the question can be reformulated according to the rules set out in the certificate , edit it .

1 answer 1

On the main page, lists of submenus are initially affixed

<ul style="display: block;"> 

and should be

 <ul style="display: none;"> 

as on other pages. See where the menu code is formed

  • true, but where can the problem lurk if it is a header and the style to it is the same for all pages? - foreigndezigner
  • Css style. The same. But in this case, the style is entered directly into html. It is necessary to look where the html-code of the menu is formed. - Dmitry Kozlov
  • The problem may be in the script? - foreigndezigner
  • Maybe anywhere - Dmitry Kozlov