I ended up adding this to my head:
<?
if (wp_is_mobile()) {
include(TEMPLATEPATH . "/mobile/index.php");
return;
}
?>
And it worked out fine for my purposes.
Related Posts:
- Get name of the current template file
- How do you find out which template page is serving the current page?
- How can i change email template for new user
- Enable page templates. How?
- Is it possible to override the result of get_template_part()?
- How do you access the Product Short Description in a WooCommerce email template? [closed]
- View WordPress page template usage (or unused)
- Custom templates folder
- How do I get the URL of a specific size featured image?
- Create Page that uses specific template
- Sharing templates with the JSON API?
- index.php template is used instead of blog page
- Prevent private post 404
- Where is the /blog/ url set from?
- NextGen Gallery template cache [closed]
- Adding variable to get_template_part
- Set template based on query in URL
- Template tags for Buddypress
- ACF image field to WordPress featured image
- Child theme template file will not load
- How to display only an excerpt of the content with custom post types?
- get_template_part returns NULL
- ACF – Theming Flexible Content
- Display “large” image size and show caption in attachment page
- How to delete read more span on single post view?
- How can I get WP to use templates in lower-level subfolder?
- how to make a home page for wordpress custom theme
- WordPress editable template fields
- Conditionally display different images before the content in a page template
- Why write markup for index.php?
- Show all parts in multipage post
- One of my pages uses the archive.php template only. Why?
- Why are 404s not triggering my 404.php template?
- Is there a way to create a block template that is not limited to a post type?
- link to non-category page routed to category template
- Can’t format content of Rich Text Editor in Template
- get_file_data to read data for Custom Template File?
- Footer.php not showing?
- How to publish a Page and Posts using single template
- How to redirect my custom template page to content-none.php if no posts found?
- lost css when overriding themes templates
- What is the best practice to style archive page 2,3,etc differently than archive.php?
- How to create a post template with two sidebars
- ACF costum date format [closed]
- get_month_link uses what wordpress template?
- != and !== both not always working? [closed]
- Page template for a site from network
- WordPress 3.3.1 single post template
- Can you use block patterns in block templates or insert them programmatically?
- WP redirect to custom login page if a user is not logged in
- Conditional to determine if search.php page is the current template
- Prevent 404 and serve custom template for custom URL
- Page Templates not using functions.php
- Add stylesheet per layout
- Import a header template from another theme
- use a custom page to display search results
- Will placing custom templates in sub directory break any native WordPress functionality
- When a user registers, create a page from an existing template with their username as the page name
- Theme settings Page: Settings Api vs Update_Options
- Archive-custome_post.php template not working
- How to add description over forum list on bbpress root page
- two active templates for one post
- Where is the code for “Front Page Template”?
- Can index.php take over for front-page.php in template hierarchy on second page?
- Help Understanding Template Hierarchy
- what is template-name.php
- What filter or action hook to use in order to load some code before the template begins printing in BuddyPress? [closed]
- templates with page teasers Or Featured Items
- If Child or Grandchild of Page
- Page template not registering on theme
- Is it possible to create custom links inside a template?
- How do I custom a page that doesn’t exist in the page list?
- How do I get tags linking to proper pages (/tag/sample-tag -> pages with that tag)
- Uncaught Error: Call to undefined function twentytwenty_the_post_meta()
- Timber + MtHaml, or any other HAML-like HTML shorthand
- How to name custom search page PHP file?
- small problem in the article ()
- Unable to access wordpress page
- How to configure my blog page
- BuddyPress : how can I call the template WordPress would have chosen (template hierarchy)?
- How can I make custom page templates work on child theme?
- Archive only for /year/month, not terms
- Why default template does not show?
- Why does the blog page not take the page template selected?
- Custom Taxonomy Theme file not routing correctly
- Why would adding a template file to a child theme cause an error in template-loader.php?
- How can I make is_page_template() workable in child theme?
- How can I add some blocks to template without changing template file?
- Creating a popup
- Where is search.php?
- Including Custom Template on template_include Filter not working
- Is it possible to return a specific tag archive/template as one of the search results?
- A page created with url of blog redirects to the posts page, how do I stop this?
- WordPress templates bug
- Taxonomy Parent not showing up in address bar
- wp e-commerce single-product template giving 404
- Strange Behavior of Page Template Dropdown
- WordPress Template works until page becomes a child
- WordPress -> PHPBB look a like
- WordPress template restored by mistake