This commit is contained in:
Alexander Agnarson 2021-05-25 13:13:08 +02:00
parent b0bd863938
commit 9c034a832b
3 changed files with 7 additions and 2 deletions

View file

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