• 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.