Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+7 votes
in Plugins by
recategorized by

Okay, here's a mobile theme.  It's pretty simple.  Probably lots of people want something totally different, so before you ask, I don't even have a mobile device to test this on.  If you want me to work on it, first send me a mobile device :Pā€‹   
Otherwise, consider this a DIY project.  It's here:ā€‹   


The best way to use this theme is with something like the theme-switcher plugin, here:ā€‹   


And turn on the mobile theme recognition.

Here's a mock-up screenshot, but ymmv:

Ah, I think I see what is wrong... it wasn't working if you only select the mobile switcher option... if you turn on the theme switcher function it should work, sort of.  I've fixed this now, I think; please update the code and let me know how it goes.
Now working, thanks :)
is there any additional steps to get it working?

i have downloaded the theme and the plugin, placed both in the appropriate directory, however, i dont see the style switcher in the footer, and i dont see mobile theme when tested from Samsung Galaxy S2 browser.
also, on mini opera demo site http://demo.opera-mini.net/public/

it shows the normal theme.

my site url is  : http://www.kalaaam.com/
using 1.5+ you need to enable mobile theme switching in admin

1 Answer

+2 votes
Fantastic theme and plugin !!! Thanks

The only comment I have is that the extra code I add on top, for adsense, appears also in the mobile theme, where it looks a bit odd.

Thanks for the great work :)
Thanks for the feedback :)  you can probably turn off the adsense by checking for the following:

qa_opt('site_theme') == qa_opt('theme_switch_mobile')

You could also use this test to change the adsense css, I think.
I have it in the custom HTML part of the code.

Can't you make the mobile theme not to add the custom HMTL fields? I think it would make more sense, since the custom HTML modules are for the main theme :)
I don't get the problem... every plugin and theme can use the head_custom function, as long as you put the callback like I did... all I'm doing is adding a meta header, it shouldn't interfere with your code.
I didn't explain well. In Q&A you have the opcion to add HTML code in Layout. This can go up or down the pages, or on the side.

IMHO, the mobile theme should ignore this extra HTML code.
ah, gotcha.  I'll look into it...
I don't think it would be right to remove the main and full widgets... the side widgets are already removed along with the sidebar; what if someone wants to keep the widget in the mobile theme?

You're better off just adding a custom call like I mention above, or else a css to set display:none in the mobile theme; otherwise, someone will complain that the theme removes their widgets :)
ok, will try to do that. I still think that the mobile theme should do that automatically, but I guess you are right, some people would complain .. :D