Like the blog? Get the book »

Daily archives: Monday, December 7, 2009

Archive page 1 of 1
Redirect Mobile Users to a Mobile WordPress Theme

Redirect Mobile Users to a Mobile WordPress Theme

Let’s say you want to have a special theme for your WordPress site for mobile users. You don’t want to use a pre-canned solution or anything third-party, you just want to create and design the theme yourself. So what you need to happen is for the site to detect mobile users and server up an alternate theme instead. Here is how I might do it.

WPLookup

Enter a search query (normally a function or variable name) and you will get a listing of multiple results:

  1. Link to the page in the Function/Template Tag Reference from the WordPress Codex
  2. Link to a PHPXref page for your query (@ xref.yoast.com)
  3. Link to the phpDoc page at WordPress.org
  4. Finally, you’ll also get a list of resources and pre-populated search links to other Codex documentation and Google web search

Editor’s note: 404 link removed.

WP Questions

Ever had a “WordPress emergency” — your project is due tomorrow, but one line of code is breaking your site and you need answers fast?

WPQuestions is problem-solving community for WordPress, ideal for users seeking quick, succinct answers they can’t find in any WordPress forums. WPQ is also great for established WordPress developers who want to help problem-solve and be paid fairly for their efforts.

© 2009–2024 Digging Into WordPress Powered by WordPress Monzilla Media shapeSpace