Search
 
SCRIPT & CODE EXAMPLE
 

PHP

current menu item

function special_nav_class($classes, $item){
     if( in_array('current-menu-item', $classes) ){
             $classes[] = 'current ';
     }
     return $classes;
}
add_filter('nav_menu_css_class' , 'special_nav_class' , 10 , 2);
Comment

PREVIOUS NEXT
Code Example
Php :: how to include pdf in php page 
Php :: PHP DOMDocument, Unicode problems 
Php :: Accept multiple space separated inputs 
Php :: phpdoc array type 
Php :: php browser cache clear 
Php :: php array_intersect_assoc 
Php :: navigate json decode php 
Php :: wordpress single_cat_title slug 
Php :: get product price with thousands separator 
Php :: how to auto increment id after delete value in php mysql 
Php :: odoctrine querybuilder print sql 
Php :: solaris 11 php mysql 
Php :: command line that convert html to php file 
Php :: multi domain codeigniter 
Php :: array filter vs array search php 
Php :: image downlord 
Php :: public function __sleep() and __wakeup() 
Php :: laravel route group within a group 
Php :: event handler with worker laravel 
Php :: php order array by specific key 
Php :: php polymorphism 
Php :: how to push associative array in php 
Php :: how to append one array to another array in php 
Php :: how to do taxonomy filter in wordpress 
Php :: php code to submit a radio button value using onclick function 
Php :: how to convert string to int in php laravel 
Java :: Manifest merger failed : Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` 
Java :: java print stack trace to string 
Java :: java integer to binary string with leading zeros 
Java :: WRITE_EXTERNAL_STORAGE no longer provides write access when targeting Android 10+ 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =