It's an extension kit for our theme https://github.com/hieu-pv/nf-theme
composer require nf/menu-kit
Open
config/app.php
and register the required service provider.
'providers' => [
// .... Others providers
\NF\Menu\MenuServiceProvider::class,
],
import js of package menu-kit in file (wp-content/themes/{name_theme}/resources/assets/scripts/app.js);
import '../../../vendor/nf/menu-kit/assets/dist/app.js';
import css of package menu-kit in file (wp-content/themes/{name_theme}/resources/assets/styles/app.scss);
@import '../../../vendor/nf/menu-kit/assets/dist/app.css';
Automatic create a shortcode name
menu-kit
with a attributetheme_location
is require:
[menu-kit theme_location="{location_menu}"]
Example:
[menu-kit theme_location='main-menu'"]
Very easy
do_shortcode("[menu-kit theme_location='main-menu'"]")
{tip} Drink tea and relax !