This commit is contained in:
Alexander Agnarson 2021-05-25 13:18:17 +02:00
parent 6be3893867
commit 8aaf8b9706
3 changed files with 7 additions and 2 deletions

View file

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