FA 5.15.2 + trap js/html + regen lang + menu css fix + dropdown width + style.css version number + pingback header fix + disable nav mods

This commit is contained in:
Alexander Agnarson 2021-03-05 15:59:56 +01:00
parent 8ab16bbdf3
commit a893d4a227
23 changed files with 6759 additions and 1618 deletions

View file

@ -98,15 +98,17 @@ add_action( 'after_setup_theme', 'airl_setup' );
/* Custom navigation
/* ------------------------------------ */
require_once 'functions/nav.php';
$nav = new \AlxMedia\Nav();
$nav->enqueue(
[
'script' => 'js/nav.js',
'inline' => false,
]
);
$nav->init();
add_action( 'wp', function() {
require_once 'functions/nav.php';
$nav = new \AlxMedia\Nav();
$nav->enqueue(
[
'script' => 'js/nav.js',
'inline' => false,
]
);
$nav->init();
} );
/* Custom logo