Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 12th Mar 2013, 01:08 PM   #1
Advanced Warrior
 
Join Date: 2008
Posts: 945
Thanks: 4
Thanked 24 Times in 24 Posts
Default
Is there a way to use mobile redirect on a wordpress responsive theme?
Share on: 
fb share twitter share gplus share more share

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?

mrtrance is offline  
Unread 12th Mar 2013, 01:10 PM   #2
webstylecreator.com
War Room Member
 
MagicAce's Avatar
 
Join Date: 2010
Location: Torino, Italy
Posts: 686
Thanks: 56
Thanked 68 Times in 46 Posts
Default
Re: Is there a way to use mobile redirect on a wordpress responsive theme?
Share on: 
fb share twitter share gplus share more share

It should work using an htacces redirect.

I am no sure but it should work.

MagicAce is offline  
Unread 12th Mar 2013, 02:08 PM   #3
Advanced Warrior
 
Join Date: 2008
Posts: 945
Thanks: 4
Thanked 24 Times in 24 Posts
Default
Re: Is there a way to use mobile redirect on a wordpress responsive theme?
Share on: 
fb share twitter share gplus share more share

Originally Posted by MagicAce View Post

It should work using an htacces redirect.

I am no sure but it should work.
Ya I want to keep the theme for the desktop version, but I'd like to setup a full mobile site that will be better with navigation and user friendly with tap to call, etc.

I hope others can post some feedback if this can be achieved for sure and what sort of coding I would need to do.

mrtrance is offline  
Unread 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
Default
Re: Is there a way to use mobile redirect on a wordpress responsive theme?
Share on: 
fb share twitter share gplus share more share

There's several wordpress plugins that do this. I use the jumpmobi one to do the same thing.
arlittell is offline  
The Following User Says Thank You to arlittell For This Useful Post:
Unread 12th Mar 2013, 03:23 PM   #5
Advanced Warrior
 
Join Date: 2008
Posts: 945
Thanks: 4
Thanked 24 Times in 24 Posts
Default
Re: Is there a way to use mobile redirect on a wordpress responsive theme?
Share on: 
fb share twitter share gplus share more share

Originally Posted by arlittell View Post

There's several wordpress plugins that do this. I use the jumpmobi one to do the same thing.
Well I only asked this since the theme I'm using is a responsive theme and read on other forums that is a pain to disable the responsive part of the theme unless you do some heavy CSS editing. Others mentioned that it is not possible to do a mobile redirect with a responsive wordpress theme..it's either you get the responsive feature or have to do major CSS changes in order to disable it since it is coded all thorough the theme.

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?

mrtrance is offline  
Unread 12th Mar 2013, 05:08 PM   #6
Mobile+WP = JumpMobi.com
War Room Member
 
Jay Moreno's Avatar
 
Join Date: 2009
Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
Default
Re: Is there a way to use mobile redirect on a wordpress responsive theme?
Share on: 
fb share twitter share gplus share more share

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!
Jay Moreno is offline  
Unread 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
Default
Re: Is there a way to use mobile redirect on a wordpress responsive theme?
Share on: 
fb share twitter share gplus share more share

Originally Posted by mrtrance View Post

Well I only asked this since the theme I'm using is a responsive theme and read on other forums that is a pain to disable the responsive part of the theme unless you do some heavy CSS editing. Others mentioned that it is not possible to do a mobile redirect with a responsive wordpress theme..it's either you get the responsive feature or have to do major CSS changes in order to disable it since it is coded all thorough the theme.

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?
Yes, I have a responsive theme, and the jumpmobi plugin still works. It will redirect based on user agent or screen size. I like the responsive theme for tablets, but I prefer a mobile site for phones.
arlittell is offline  
Unread 12th Mar 2013, 07:47 PM   #8
Warrior Member
Registered Member
 
Join Date: 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Is there a way to use mobile redirect on a wordpress responsive theme?
Share on: 
fb share twitter share gplus share more share

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
quailadv is offline  
Unread 13th Mar 2013, 06:33 AM   #9
Warrior Member
 
Join Date: 2009
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: Is there a way to use mobile redirect on a wordpress responsive theme?
Share on: 
fb share twitter share gplus share more share

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
LarryHoffman is offline  
Unread 13th Mar 2013, 12:00 PM   #10
Advanced Warrior
 
Join Date: 2008
Posts: 945
Thanks: 4
Thanked 24 Times in 24 Posts
Default
Re: Is there a way to use mobile redirect on a wordpress responsive theme?
Share on: 
fb share twitter share gplus share more share

Originally Posted by quailadv View Post

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
Sent you a PM.

mrtrance is offline  
Unread 13th Mar 2013, 12:01 PM   #11
Advanced Warrior
 
Join Date: 2008
Posts: 945
Thanks: 4
Thanked 24 Times in 24 Posts
Default
Re: Is there a way to use mobile redirect on a wordpress responsive theme?
Share on: 
fb share twitter share gplus share more share

Originally Posted by arlittell View Post

Yes, I have a responsive theme, and the jumpmobi plugin still works. It will redirect based on user agent or screen size. I like the responsive theme for tablets, but I prefer a mobile site for phones.
Is jumpmobi the only wp plugin that will get this done? Any other suggestions?

mrtrance is offline  
Unread 13th Mar 2013, 12:43 PM   #12
Warrior Member
 
Join Date: 2009
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: Is there a way to use mobile redirect on a wordpress responsive theme?
Share on: 
fb share twitter share gplus share more share

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
LarryHoffman is offline  
Unread 13th Mar 2013, 04:37 PM   #13
Advanced Warrior
 
Join Date: 2008
Posts: 945
Thanks: 4
Thanked 24 Times in 24 Posts
Default
Re: Is there a way to use mobile redirect on a wordpress responsive theme?
Share on: 
fb share twitter share gplus share more share

Originally Posted by LarryHoffman View 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
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.

mrtrance is offline  
Unread 14th Mar 2013, 07:26 AM   #14
Warrior Member
 
Join Date: 2009
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: Is there a way to use mobile redirect on a wordpress responsive theme?
Share on: 
fb share twitter share gplus share more share

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
LarryHoffman is offline  
Unread 14th Mar 2013, 08:12 AM   #15
HyperActive Warrior
 
zardon's Avatar
 
Join Date: 2010
Location: Newcastle, UK
Posts: 202
Thanks: 24
Thanked 16 Times in 16 Posts
Default
Re: Is there a way to use mobile redirect on a wordpress responsive theme?
Share on: 
fb share twitter share gplus share more share

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
zardon is offline  
Unread 14th Mar 2013, 10:19 AM   #16
Warrior Member
 
Join Date: 2009
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: Is there a way to use mobile redirect on a wordpress responsive theme?
Share on: 
fb share twitter share gplus share more share

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
LarryHoffman is offline  
Closed Thread


Bookmarks

Tags
mobile, redirect, responsive, theme, wordpress


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 04:31 PM.