Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
331 views
in Q2A Core by
I have some code that would redirect mobile users to the mobile version of the site. I'm not sure where to put this code, perhaps in the index.php?
by
Why not just use a mobile stylesheet? Q2A's HTML isn't particularly heavyweight.

1 Answer

0 votes
by

If you need to do a redirect, you should put it in your qa-plugin.php file - that is loaded pretty early on, before the database is connected to.

But if appropriate, you could also consider just substituting some key elements in the HTML, especially the CSS file, by overloading the appropriate theme functions.

...