Q: I used iWeb to make a small business webpage. I now need a mobile site. What is the best way to do that?
Some sites do it all for you but look terrible. They charge a monthly fee that may go up quickly. Others will sell you a hosting plan with a template but not how to link up to my page so viewers get redirected? Then I will have two separate hosting companies and will need to change all content twice.
Has anyone figured this out?
Posted on Apr 27, 2015 11:32 AM
The mobile option in iWeb is simply a smaller width of the page.
To redirect to such page, you have to use a javascript.
<script type="text/javascript">
// Change the number of the screen width to suit the desired screen.
if (screen.width <= 768) {
window.top.location.href = "http://www.domain.com/THE-PAGENAME-IT-SHOULD-DIRECT-TO.html";
}
</script>
Paste the code in a HTML Snippet and move it to the top of the page and then to the back (Command-Shift-B)
When a mobile device user arrives at your desktop size page, he will be redirect to the smaller page as defined in the script.
Posted on Apr 28, 2015 10:07 AM