We launched a new IT training category! Check out the 140+ courses now.

Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Configuring the Mobile Theme Switcher

From: WordPress Mobile Solutions

Video: Configuring the Mobile Theme Switcher

WordPress Mobile Pack gives you several options when it comes to handling mobile visitors. At the core of the plug-in, is the Mobile Theme Switcher, which just like the name suggests, allows you to switch the theme when the site is accessed from a mobile device. This means you're not bound by the themes that come with a plug-in, you can also create your own custom themes that show up only on mobile devices. The Mobile Theme Switcher has several different options. To get to it we have to go to the Dashboard, and if we go to Appearance you'll see that WordPress Mobile Pack has added three new options: Mobile Theme, Mobile Widgets and Mobile Switcher, we want to go to Mobile Switcher.

Configuring the Mobile Theme Switcher

WordPress Mobile Pack gives you several options when it comes to handling mobile visitors. At the core of the plug-in, is the Mobile Theme Switcher, which just like the name suggests, allows you to switch the theme when the site is accessed from a mobile device. This means you're not bound by the themes that come with a plug-in, you can also create your own custom themes that show up only on mobile devices. The Mobile Theme Switcher has several different options. To get to it we have to go to the Dashboard, and if we go to Appearance you'll see that WordPress Mobile Pack has added three new options: Mobile Theme, Mobile Widgets and Mobile Switcher, we want to go to Mobile Switcher.

From the Mobile Switcher Configuration page we can set up how the plug-in identifies mobile devices and what theme we serve up to those mobile devices. From the top we have the Switcher mode where the identification happens. We can disable the function so that we don't detect mobile devices. I don't know why you would want to do that, but you can. You also have Browser detection, which is the standard mode. This is the default and the one I recommend you do. It identifies the browser as a mobile browser, or a desktop browser, and then serves up themes depending on that. You can also use Domain mapping.

This requires that you have access to your DNS settings, and that your DNS host allows you to do Wildcard Mapping, but it allows you to sets a different domain, for instance m.something, for the mobile site, which can be useful in some cases, or you can do both Browser Detection and Domain Mapping. For almost all cases Browser Detection is the best option, so you should leave it at that. Directly below we can select what Mobile theme we want to use. WordPress Mobile Pack ships with four custom mobile themes.

They all look pretty much the same except for the color. The base is kind of brownish then you have a blue, a green, and a red option. But in addition, you get a list of all the themes you have installed on your site, and you can use any of these themes as a mobile theme. And this is really cool if you have a custom theme for your site that controls how it looks, and you also want to serve up a custom experience for people who access the site with mobile devices because you can then create a custom version of your theme just for mobile devices so that whenever someone visits your site on a mobile device, they will get your theme customized for a mobile experience.

If you don't have your own custom mobile theme, but you're still going to serve up something other, than the cookie-cutter themes that come with the WordPress Mobile Pack, you can choose to use a Responsive theme like Twenty Eleven or another responsive theme just for the mobile devices. The next three options relate to the Switcher mode, so if you set the Switcher mode to Domain mapping, you can now change the Desktop domain and the Mobile domains so that the different users land on the correct sites. Like I said before, this is an advanced option, and it's really not necessary if you use the Browser detection option, but if you do, and you know what you're doing you can experiment with these settings as well.

Finally, at the bottom you have Footer links. This allows you to place a small link in the footer of the mobile site that gives the visitor the ability to jump back to the desktop site. This is really useful because a lot of people when they land on these mobile sites don't like what they see or they maybe looking for something specific like an image or gallery or something that's being excluded by the mobile theme. By giving them this link they can choose to go back to the desktop experience even if it's a sub-optimal experience, meaning you're handing the control over the experience over to your user, and that's always a good idea.

If you make any changes to the Mobile Switcher settings, always remember to click Save Changes before you leave the page.

Show transcript

This video is part of

Image for WordPress Mobile Solutions
WordPress Mobile Solutions

16 video lessons · 6858 viewers

Morten Rand-Hendriksen
Author

 

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed WordPress Mobile Solutions.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.