nf/menu-kit

Menu Collection

Maintainers

Details

github.com/nf-theme/menu-kit

Source

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Language:CSS

2.0.0 2018-12-03 06:51 UTC

This package is auto-updated.

Last update: 2024-10-29 04:47:34 UTC


README

It's an extension kit for our theme https://github.com/hieu-pv/nf-theme

Before Installation

Step 1: Install Nf-Theme-Option package

nf-theme-option

Installation

Step 1: Install Through Composer
composer require nf/menu-kit
Step 2: Add the Service Provider

Open config/app.php and register the required service provider.

  'providers'  => [
        // .... Others providers 
        \NF\Menu\MenuServiceProvider::class,
    ],
Step 3: import css and js

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';
Step 4: Add shortcode

Automatic create a shortcode name menu-kit with a attribute theme_location is require:

[menu-kit theme_location="{location_menu}"]

Example:

[menu-kit theme_location='main-menu'"]
Step 5: Insert shortcode wherever you need

Very easy

do_shortcode("[menu-kit theme_location='main-menu'"]")

Last step

{tip} Drink tea and relax !