Is buddypress overriding the template filter?
- 
		Im trying to use a theme specifically for mobile devices so I filter the “template” and “stylesheet” but only the stylesheet is filtering for mobile devices. So the only reason I can think of is that buddypress is keeping the filter from applying somehow. I use the wordpress function wp_is_mobile to do it like this. add_filter( 'template', 'my_mobile_template', 99999, 1); function my_mobile_template($template){ if(wp_is_mobile()) return 'MobileThemeBeta'; return $template; }add_filter( 'stylesheet', 'my_mobile_stylesheet', 999999, 1); function my_mobile_stylesheet($stylesheet){ if(wp_is_mobile()) return 'MobileThemeBeta'; return $stylesheet; }So any idea why only the stylesheet is filtering? 
Viewing 4 replies - 1 through 4 (of 4 total)
	
Viewing 4 replies - 1 through 4 (of 4 total)
	
- The topic ‘Is buddypress overriding the template filter?’ is closed to new replies.