Change page template using wp_is_mobile
-
I’ve done this before but DIDN”T SAVE THE CODE so now I can’t figure out how to do it again.
How can do this correctly:
if (is_page_template(home.php) && wp_is_mobile() )
*/Get page template mobile_home.phpelse if (is_page_template(about.php) && wp_is_mobile() )
*/Get page template mobile_about.php
- The topic ‘Change page template using wp_is_mobile’ is closed to new replies.