Closed Narga closed 12 years ago
I'm guessing your local host is PHP 5.3 and HostGator is PHP 5.2.x. You could either change to PHP 5.3 or change the function. http://support.hostgator.com/articles/hosting-guide/hardware-software/php-5-3
// Add Foundation 'active' class for the current menu item
add_filter('nav_menu_css_class' , 'add_active_class', 10 ,2);
function add_active_class($classes, $item){
if($item->current == 1){ //Notice you can change the conditional from is_single() and $item->title
$classes[] = "active";
}
return $classes;
}
hope that helps :]
Thanks! It's working like charm
Ahh, I confused with this error. On localhost, reverie working perfect but when I upload it on to my webhosting (HostGator) then active this theme, I've got blank page. I set WP_DEBUG to true then try again, it's tell me Parse error: syntax error, unexpected T_FUNCTION in /public_html/wp-content/themes/reverie/functions.php on line 198