From: soufiane Date: Wed, 19 Feb 2025 16:18:36 +0000 (+0100) Subject: wait #7344 @0:20 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4ff45686e0bf022711be0923278c290d46fb8d24;p=spinepro.git wait #7344 @0:20 --- diff --git a/wp-content/themes/CCV/functions.php b/wp-content/themes/CCV/functions.php index 35465028..a00f752d 100644 --- a/wp-content/themes/CCV/functions.php +++ b/wp-content/themes/CCV/functions.php @@ -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/