This commit is contained in:
Alexander Agnarson 2021-05-25 13:10:18 +02:00
parent 204e335038
commit 1398fe3eaa
3 changed files with 7 additions and 2 deletions

View file

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