-
diff --git a/fonts/fa-solid-900.ttf b/fonts/fa-solid-900.ttf
index 9dd8c7f..bc64092 100644
Binary files a/fonts/fa-solid-900.ttf and b/fonts/fa-solid-900.ttf differ
diff --git a/fonts/fa-solid-900.woff b/fonts/fa-solid-900.woff
index 3c9ef93..7a14a11 100644
Binary files a/fonts/fa-solid-900.woff and b/fonts/fa-solid-900.woff differ
diff --git a/fonts/fa-solid-900.woff2 b/fonts/fa-solid-900.woff2
index ba7507b..9a4633d 100644
Binary files a/fonts/fa-solid-900.woff2 and b/fonts/fa-solid-900.woff2 differ
diff --git a/footer.php b/footer.php
index 84a3c52..3b7a637 100644
--- a/footer.php
+++ b/footer.php
@@ -48,7 +48,7 @@
diff --git a/functions.php b/functions.php
index 2744473..4d6ca47 100644
--- a/functions.php
+++ b/functions.php
@@ -90,15 +90,17 @@ add_action( 'after_setup_theme', 'curver_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 \Curver\Nav();
+ $nav->enqueue(
+ [
+ 'script' => 'js/nav.js',
+ 'inline' => false,
+ ]
+ );
+ $nav->init();
+} );
/* Custom logo
diff --git a/functions/nav.php b/functions/nav.php
index a4b6de5..8a49459 100644
--- a/functions/nav.php
+++ b/functions/nav.php
@@ -3,7 +3,7 @@
* An accessible and mobile-friendly implementation for navigation menus.
*/
-namespace AlxMedia;
+namespace Curver;
/**
* Object containing all methods and hooks to modify default menus.
@@ -46,7 +46,7 @@ class Nav {
*
* @var string
*/
- protected $handle_prefix = 'alexmedia-nav';
+ protected $handle_prefix = 'curver-nav';
/**
* Init.
@@ -56,6 +56,9 @@ class Nav {
* @return void
*/
public function init() {
+ if ( apply_filters( 'curver_disable_nav_mods', false ) ) {
+ return;
+ }
add_filter( 'walker_nav_menu_start_el', [ $this, 'add_nav_sub_menu_buttons' ], 10, 4 );
add_filter( 'nav_menu_item_title', [ $this, 'nav_menu_item_title' ], 10, 4 );
}
diff --git a/header.php b/header.php
index 90a0e58..99bcc88 100644
--- a/header.php
+++ b/header.php
@@ -5,7 +5,9 @@
+
+
@@ -55,7 +57,7 @@
- 'mobile','menu_id' => 'nav-mobile','fallback_cb'=> false)); ?>
+ 'mobile','menu_id' => 'nav-mobile','fallback_cb'=> false)); ?>