]> _ Git - spinepro.git/commitdiff
wait #7344 @0:20
authorsoufiane <soufiane@cubedesigners.com>
Wed, 19 Feb 2025 16:18:36 +0000 (17:18 +0100)
committersoufiane <soufiane@cubedesigners.com>
Wed, 19 Feb 2025 16:18:36 +0000 (17:18 +0100)
wp-content/themes/CCV/functions.php

index 35465028c55f7212bd1601df206893a3413d9cac..a00f752dc24d1e7b1517c7d8be72aecffa431354 100644 (file)
@@ -71,6 +71,14 @@ function delete_post_type(){
 }
 add_action('init','delete_post_type', 100);
 
+function add_onclick_void($attrs, $item, $args) {
+    if ($item->ID == 2364 || $item->ID == 2369 || $item->ID == 2385 || $item->ID == 3805) {
+        $attrs['onclick'] = 'return false';
+    }
+    return $attrs;
+}
+add_filter('nav_menu_link_attributes', 'add_onclick_void', 10, 3);
+
 /**
  * Enable sage features
  * @link https://roots.io/acorn/