12th Mar 2013, 01:08 PM | #1 |
Advanced Warrior Join Date: 2008
Posts: 945
Thanks: 4
Thanked 24 Times in 24 Posts
|
I'm planning on a setting up a site with theme that works very well as far as lead generation goes, but it seems like it is also coded to be a responsive theme as well. The issue I have is that the mobile version does not look very good to me even though it is suppose to be mobile ready. I'd like to set up a separate mobile site and do a redirection to the mobile instead of the responsive feature bringing up the mobile version of the theme. Is there a way to disable or override the responsive part of the theme so that the separate mobile site is shown to mobile users instead of the responsive version of the theme? |
| |
12th Mar 2013, 01:10 PM | #2 |
webstylecreator.com War Room Member Join Date: 2010 Location: Torino, Italy
Posts: 686
Thanks: 56
Thanked 68 Times in 46 Posts
|
It should work using an htacces redirect. I am no sure but it should work. |
| |
12th Mar 2013, 02:08 PM | #3 | |
Advanced Warrior Join Date: 2008
Posts: 945
Thanks: 4
Thanked 24 Times in 24 Posts
|
I hope others can post some feedback if this can be achieved for sure and what sort of coding I would need to do. | |
| ||
12th Mar 2013, 02:25 PM | #4 |
Warrior Member Registered Member War Room Member Join Date: 2013
Posts: 21
Thanks: 2
Thanked 4 Times in 4 Posts
|
There's several wordpress plugins that do this. I use the jumpmobi one to do the same thing.
|
The Following User Says Thank You to arlittell For This Useful Post: |
12th Mar 2013, 03:23 PM | #5 | |
Advanced Warrior Join Date: 2008
Posts: 945
Thanks: 4
Thanked 24 Times in 24 Posts
|
I'd really like to get feedback from those that have a responsive theme and also a separate mobile site up at the same time without making any changes to the theme? | |
| ||
12th Mar 2013, 05:08 PM | #6 |
Mobile+WP = JumpMobi.com War Room Member Join Date: 2009 Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
|
providing you use a user agent based redirect you wont have any problems redirecting your mobile visitors FYI .htaccess redirects (as MagicAce pointed out) would work too since they are user agent based as well hth |
Sorry, I am too busy helping people to think of a cool signature! | |
12th Mar 2013, 06:10 PM | #7 | |
Warrior Member Registered Member War Room Member Join Date: 2013
Posts: 21
Thanks: 2
Thanked 4 Times in 4 Posts
|
| |
12th Mar 2013, 07:47 PM | #8 |
Warrior Member Registered Member Join Date: 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
You can do this using htacces redirect, I have it setup on this site Service First Collision | see it on the desktop then go to it on your phone, I also wanted another look for mobile. I put in the htacces file to have iPad view the same as desktop. Let me know if you need help with this, just send pm |
13th Mar 2013, 06:33 AM | #9 |
Warrior Member Join Date: 2009
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
|
you can't disable the responsive theme, you can redirect using rewrite rules in the .htaccess file. Here are the rewrite rules you need to add the the .htaccess file: RewriteEngine On # If the user is asking for the fullsite, set a cookie, remove the query, and stop. RewriteCond %{QUERY_STRING} ^fullsite$ RewriteRule ^/?(.*)$ http://domain.com/$1? [L,CO=fullsite:yes:.domain.com] # If the user is asking for the mobilesite, set a cookie, remove the query, redirect and stop. RewriteCond %{QUERY_STRING} ^mobilesite$ RewriteRule ^/?(.*)$ http://m.domain.com/$1? [L,CO=fullsite:no:.domain.com] # If the visit is from a mobile user agent, and there's no fullsite cookie, redirect and stop # if the browser accepts these mime-types, it's definitely mobile, or pretending to be RewriteCond %{HTTP_ACCEPT} "text\/vnd\.wap\.wml|application\/vnd\.wap\.xhtml\+xml" [NC,OR] # a bunch of user agent tests RewriteCond %{HTTP_USER_AGENT} "sony|symbian|nokia|samsung|mobile|windows ce|epoc" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "mini|nitro|j2me|midp-|cldc-|netfront|mot|up\.browser|up\.link|audiovox"[NC,OR] RewriteCond %{HTTP_USER_AGENT} "ericsson,|panasonic|philips|sanyo|sharp|sie-"[NC,OR] RewriteCond %{HTTP_USER_AGENT} "portalmmm|blazer|avantgo|danger|palm|series60|pal msource|pocketpc"[NC,OR] RewriteCond %{HTTP_USER_AGENT} "smartphone|rover|ipaq|au-mic,|alcatel|ericy|vodafone\/|wap1\.|wap2\.|iPhone|android"[NC,OR] RewriteCond %{HTTP_USER_AGENT} "android|blackberry|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC] # Note: I've updated the conditions above to skip iPads. However, # mobile safari still reports itself as 'mobile' and thus needs an explicit opt-out RewriteCond %{HTTP_USER_AGENT} !iPad [NC] RewriteCond %{HTTP_COOKIE} !^.*fullsite=yes.*$ [NC] RewriteRule ^/?(.*)$ http://m.domain.com/$1 [L,R=302] Hope this helps Larry |
13th Mar 2013, 12:00 PM | #10 | |
Advanced Warrior Join Date: 2008
Posts: 945
Thanks: 4
Thanked 24 Times in 24 Posts
|
| |
| ||
13th Mar 2013, 12:01 PM | #11 |
Advanced Warrior Join Date: 2008
Posts: 945
Thanks: 4
Thanked 24 Times in 24 Posts
|
Is jumpmobi the only wp plugin that will get this done? Any other suggestions?
|
| |
13th Mar 2013, 12:43 PM | #12 |
Warrior Member Join Date: 2009
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
|
You can use wptouch pro as well. My experience is you will still need to customize the mobile theme if you don;t want the basic theme that it uses. -Larry |
13th Mar 2013, 04:37 PM | #13 |
Advanced Warrior Join Date: 2008
Posts: 945
Thanks: 4
Thanked 24 Times in 24 Posts
|
Well I was going to code a mobile site separately either in php or html or use one of the templates by WillR or a few of the other ones in the WSO section. I'd like the mobile site to be totally different than website as far as feel and style. Just was concerned if the responsive part of the desktop theme would prevent me from putting in a redirect and going to the mobile site that is built independently.
|
| |
14th Mar 2013, 07:26 AM | #14 |
Warrior Member Join Date: 2009
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
|
The responsive theme will not prevent you from doing that... Just place the mod_rewite code (see the above post) in the .htacess file in the Wordpress install. Also you should have pretty urls on the mobile version as well. All you need to do is create another .htaccess file in the moblie directory and use these mod_rewrite rules: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ /$1.php [L,QSA] </IfModule> -Larry |
14th Mar 2013, 08:12 AM | #15 |
HyperActive Warrior Join Date: 2010 Location: Newcastle, UK
Posts: 202
Thanks: 24
Thanked 16 Times in 16 Posts
|
If you can't use htaccess files there is some code, which I can't recall right now which you can use (PHP) which will find out if the device is iPhone, Android or whatever and then you can do a redirect
|
14th Mar 2013, 10:19 AM | #16 |
Warrior Member Join Date: 2009
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
|
Sure is... I did a quick search and found this link here: Redirect Mobile Devices with PHP You can do a search on Google, I used the following: "php code and redirect mobile" Hope this helps. -Larry |
Bookmarks |
Tags |
mobile, redirect, responsive, theme, wordpress |
| |