This commit is contained in:
Alexander Agnarson 2021-05-25 14:26:02 +02:00
parent c4552887f5
commit 163d80e0f7
4 changed files with 29 additions and 23 deletions

View file

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