This commit is contained in:
Alexander Agnarson 2021-05-25 14:18:08 +02:00
parent 9858aef06c
commit ceb4679caa
3 changed files with 8 additions and 2 deletions

View file

@ -98,8 +98,10 @@ add_action( 'after_setup_theme', 'airl_setup' );
/* Custom navigation
/* ------------------------------------ */
add_action( 'wp', function() {
if ( ! class_exists( '\Airl\Nav' ) ) {
require_once 'functions/nav.php';
}
add_action( 'wp', function() {
$nav = new \Airl\Nav();
$nav->enqueue(
[