Mobile Site redirect
MonkeyHipsandRice
Registered Users Posts: 30 Big grins
Greetings all,
Some the things on my site are best for computers/laptops and just won't display right on mobile devices such as the way I did my pricing. I am going to create a separte mobile site within my site and I need some code to redirect customers based on what device they are viewing my site on. So if they are using a phone/tablet it will redirect them to a differant homepage and menu system. This will allow me to get fancy and not so fancy on mobile for speed:D Is this possible? What code would I use to accomplish this?
Thank you!
www.TimothyFernandez.com
Some the things on my site are best for computers/laptops and just won't display right on mobile devices such as the way I did my pricing. I am going to create a separte mobile site within my site and I need some code to redirect customers based on what device they are viewing my site on. So if they are using a phone/tablet it will redirect them to a differant homepage and menu system. This will allow me to get fancy and not so fancy on mobile for speed:D Is this possible? What code would I use to accomplish this?
Thank you!
www.TimothyFernandez.com
www.TimothyFernandez.com
https://www.facebook.com/pages/Timothy-Fernandez-Photography/261533360580699?ref=hl
https://www.facebook.com/pages/Timothy-Fernandez-Photography/261533360580699?ref=hl
0
Comments
You didn't ask for feedback, but are you aware that some of the lines of text in your pricing section overlap? I see this under "Your Story" on the main pricing page and in the "Cozy" presentation as well.
--- Denise
Musings & ramblings at https://denisegoldberg.blogspot.com
Thanks I will check it out!
I always apprciate feedback . Your trying to help and I thank you for that! I think I figured out why it was doing that on some lines and not others. I would see it on some monitors and not others. It had to do with screen size. So I think I fixed it at least for all the screens in my house I checked it on
https://www.facebook.com/pages/Timothy-Fernandez-Photography/261533360580699?ref=hl
https://www.facebook.com/pages/Timothy-Fernandez-Photography/261533360580699?ref=hl
However, there is a very simple way to do what you want to do and it's exactly as Denise mentioned.
Basically it looks like what you've done is created 2 separate pages with 1 HTML blocks in them, each. Why not have 1 page with both HTML blocks in them, and then hide one based on the screen size?
For example, for mobile, you'd use this code to hide the big block you use for the full site:
And for the full site, you'd hide the mobile widget:
Just make sure to grab the correct widget ID number's from your code (highlighted in red).
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
THank you very much for your help!! I was having trouble using pages due to my browser. I used a differant one now. I did as you suggested. I made a page with both html blocks in them. two separet html blocks on the same page. I am having trouble getting it to work. I don't understand about the widget code and how to set this up exactly. Could you explain just alittle bit?
Kind Regards,
Timothy
https://www.facebook.com/pages/Timothy-Fernandez-Photography/261533360580699?ref=hl