L
L
Laid2016-04-30 15:43:17
PHP
Laid, 2016-04-30 15:43:17

Customizr Theme | How to add a second menu?

There is a site with the Customizr theme
Website - dom-na-riviere.com.swtest.ru/ru
Theme on github - https://github.com/presscustomizr/customizr
You need to add a second menu. For the design to be the same (including adaptability)
The problem is that the menu is made through a lot of events and filters (3 php and they are intertwined with each other). I have been looking for a start for days, which I could grab onto and gradually create a second menu.
There are no problems with registration and displaying the second menu. But with the adaptability trouble. The second menu, which I added, does not have a button, by clicking on which the menu should drop out on mobile phones. Through the console, if I manually change display: none to display: block . That button appears, only these buttons open two menus at once. Whichever button you press, both menus open.
I understand it's about classes. Just because the menu is built on add_action and on add_filter - I get confused. I have been digging in this web for days. Your head will burst soon. Please give practical advice in which direction to dig and which filter, event to grab onto

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Laid, 2016-05-02
@stoik_kpd

Understood. Who faced the same task, start from the function - tc_menu_display in the file - class-header-menu.php. Don't forget to link it to navbar2 by creating a duplicate of navbar. If you need to display in another place, in a different from the first menu

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question