Question about redirecting to...
Hello:
I'm a developer helping someone with a Coffee Cup site. I have never used the software before, and she was asking where to insert the redirect code to send users to her mobile site. I would appreciate any quick directions to point me in the right way. Thanks!
I'm a developer helping someone with a Coffee Cup site. I have never used the software before, and she was asking where to insert the redirect code to send users to her mobile site. I would appreciate any quick directions to point me in the right way. Thanks!
If you just want to redirect Site A to Site B, you can do that with a meta-refresh. Just place this inside of the <head></head>:
<meta http-equiv="refresh" content="0; url=http://example.com/">
<meta http-equiv="refresh" content="0; url=http://example.com/">
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
Thanks for the reply! I was specifically looking for information on detecting if the user was on a mobile device so it will automatically redirect them to the responsive version of the site. Any more info you can give me on that?
Thanks again!
Thanks again!
Try this wee script:
The screen width and the path to the file(s) for mobile viewing can of course be edited.
Just a hint: If your friend would use CoffeeCup's RSD, the site could be made to adapt to any screen size, and you/she wouldn't have the hassle of maintaining two versions of the site.
<script type="text/javascript">
<!--
if (screen.width <= 699) {
document.location = "mobile.html";
}
//-->
</script>
<!--
if (screen.width <= 699) {
document.location = "mobile.html";
}
//-->
</script>
The screen width and the path to the file(s) for mobile viewing can of course be edited.
Just a hint: If your friend would use CoffeeCup's RSD, the site could be made to adapt to any screen size, and you/she wouldn't have the hassle of maintaining two versions of the site.
Ha en riktig god dag!
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com
Thank you for the code! Where do I insert this code? I would really appreciate the help!
Thanks,
Danielle
Thanks,
Danielle
dmpcooper wrote:
Thank you for the code! Where do I insert this code? I would really appreciate the help!
Thanks,
Danielle
Thank you for the code! Where do I insert this code? I would really appreciate the help!
Thanks,
Danielle
How to Redirect Website to a Mobile Version when Accessed on a Mobile Device
https://www.youtube.com/watch?v=3epQ3KOMnyA
Redirect Mobile Devices
https://css-tricks.com/snippets/javascr … e-devices/
Guys at coffeecup are awesometacular.
dmpcooper wrote:
Thank you for the code! Where do I insert this code? I would really appreciate the help!
Thanks,
Danielle
Thank you for the code! Where do I insert this code? I would really appreciate the help!
Thanks,
Danielle
Place it in between the <head></Head> tags.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.