Title: Mobile theme without plugin
Last modified: August 19, 2016

---

# Mobile theme without plugin

 *  [Tavicu](https://wordpress.org/support/users/tavicu/)
 * (@tavicu)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/mobile-theme-without-plugin/)
 * Hello,
 * I want to add mobile version for my themes but without any plugin.
 * I have tried to do, but i fail to change the hole theme.
 * It change the theme path for stylesheet and javascript, but not for theme files
   like page.php or single.php …
 * How can i change to take the hole theme files from custom directory?
 * Here is how i tried to do the change.
 *     ```
       if (is_mobile_browser()) {
       		add_filter('template', 'mobile_template');
       		add_filter('option_template', 'mobile_template');
       		add_filter('option_stylesheet', 'mobile_template');
       	}
       ```
   
 * **mobile_template** return the new theme directory name.
 * Thank you.

The topic ‘Mobile theme without plugin’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Tavicu](https://wordpress.org/support/users/tavicu/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/mobile-theme-without-plugin/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
