- My Forums
- Tiger Rant
- LSU Recruiting
- SEC Rant
- Saints Talk
- Pelicans Talk
- More Sports Board
- Fantasy Sports
- Golf Board
- Soccer Board
- O-T Lounge
- Tech Board
- Home/Garden Board
- Outdoor Board
- Health/Fitness Board
- Movie/TV Board
- Book Board
- Music Board
- Political Talk
- Money Talk
- Fark Board
- Gaming Board
- Travel Board
- Food/Drink Board
- Ticket Exchange
- TD Help Board
Customize My Forums- View All Forums
- Show Left Links
- Topic Sort Options
- Trending Topics
- Recent Topics
- Active Topics
Started By
Message
Why is it so hard to redirect mobile users to a different url?
Posted on 7/6/14 at 11:08 pm
Posted on 7/6/14 at 11:08 pm
I am so frustrated. I am trying to make it so that if a user on a mobile or tablet site visits my website that they are redirected to a page that says that my website ...
WEBSITE is not yet optimized for Mobile Devices.
We'll soon be available for Apple iOS, Windows & Android platforms.
Why is this so difficult? Does any web gurus have any suggestions? I have tried like 10 different scripts and none of them seem t work properly.
Thanks in advance
WEBSITE is not yet optimized for Mobile Devices.
We'll soon be available for Apple iOS, Windows & Android platforms.
Why is this so difficult? Does any web gurus have any suggestions? I have tried like 10 different scripts and none of them seem t work properly.
Thanks in advance
Posted on 7/6/14 at 11:32 pm to BigPapi21
I'm not sure because I've only used the cookie cutter sites but who is your host? I'd assume they would handle redirection to your m.yoursite.com mobile page.
Posted on 7/6/14 at 11:53 pm to BigPapi21
You need to code in HTML 5 and CSS 3, but you lose some of that functionality in outdated browsers.
What scripts have you used?
What scripts have you used?
Posted on 7/7/14 at 12:03 am to BigPapi21
quote:
I am so frustrated
I can't offer help, so I'll offer a funny, because laughter is the best medicine:
Posted on 7/7/14 at 9:59 am to BigPapi21
What have you tried? Simply checking the device's screen width has always worked just fine for me.
Source
CSS media queries work as well. You could show/hide certain elements based on the device width.
quote:
var width = (window.innerWidth > 0) ? window.innerWidth : screen.width;
Source
CSS media queries work as well. You could show/hide certain elements based on the device width.
quote:
@media (max-width: <whatever size your site is optimized for>px) {
.show-this-on-mobile {
display: inline;
}
}
@media (min-width: <whatever size your site is optimized for + 1>px) {
.hide-this-on-mobile {
display: none;
}
}
Posted on 7/7/14 at 10:07 am to BigPapi21
use responsive web design. It will save you and your users much frustration.
Posted on 7/7/14 at 10:25 am to BigPapi21
quote:
I am trying to make it so that if a user on a mobile or tablet site visits my website that they are redirected to a page that says that my website ...
WEBSITE is not yet optimized for Mobile Devices.
Unless you have a launch date for mobile within the next few weeks, this seems like a bad idea. Let those who are willing to zoom and scroll their way through your site do so. A "coming soon" page essentially turns everyone away.
Posted on 7/7/14 at 2:20 pm to BigPapi21
If you HAVE to redirect, can it be based on screen size or do you need it based on device/browser type?
Posted on 7/7/14 at 2:31 pm to colorchangintiger
quote:
use responsive web design. It will save you and your users much frustration.
Yep, and there are tons of frameworks that make this pretty easy these days.
Posted on 7/7/14 at 9:49 pm to colorchangintiger
quote:
use responsive web design. It will save you and your users much frustration.
The ugly truth about responsive design
Posted on 7/7/14 at 10:24 pm to nolanola
quote:
The ugly truth about responsive design
The ugly truth is that there is no free lunch. Developers still have to optimize sites, but responsive is still the way to go.
Popular
Back to top
Follow TigerDroppings for LSU Football News