-
Notifications
You must be signed in to change notification settings - Fork 8
Menus
Ivan edited this page Aug 18, 2022
·
9 revisions
Wordpress menus extended by ACF so it allows to generate header prototype.
There are 6 menu locations are provided by Starter: 'Header Top Area', 'Header Main Area', 'Header Mobile Top Area', 'Header Mobile Area', 'Footer Area', 'Service Area'.
I) Add simple menu - that's default wordpress menu.
II) Add image and icons:
- image: it's possible to use any image format but highly recommended to use svg
- icons: allowed svg only
Load svg to Media common issue
If you sees this error 1 (on screenshot) while uploading svg into Media it means that svg is invalid. In most cases in svg file missing such first line (see number 2 on screenshot). Due svg is xml WordPress require xml declaration.III) Add widgets to menus: so far we used simple links in menus - let's to add interactive elements!
To use widgets in menus install plugin WP Widget in Navigation -> goto 'Appearance->Widgets' and drag&drop default widgets or widgets provided by plugins.
See example below how to setup minicart, woo search and AWS search, TI wishlist.
IV) Nested menu settings.
IV) Add one more level menu (top).
V) Add mobile menu.
- css:
assets\scss\theme\snippets\_menus.scss
- js:
assets\js\modules\wp\menus.js