Hey guys, I want to start making mobile websites for businesses but I'm not sure how to put the redirect into their code? Do I need to ask them for the access to their Word press, HTML page, etc? Or is there a way I can access it myself to change it and add the mobile code? Thanks!
You need access to FTP. Put this before </head> <script type="text/javascript"> if(screen.width < 600){ window.location = "http://yoursite/mobile/index.html"; } </script>
Hi, I'm not sure if this is appropriate to say this, but you can save a lot of time if you use a mobile site builder for your clients. Pros 1.) Save time and effort with simple development and implementation steps. They give good guidelines on how to implement mobile site as well. 2.) Your clients can simply update the content on their own through the inbuilt content management. Cons 1.) Monthly subscription. Just my 2 cents worth of advice.
I have used this identical script on another site and it works perfectly. However, on this new site, the same script, copied exactly, is giving this error: Warning: Cannot modify header information - headers already sent by (output started at /home/content/16/8000816/html/wp-content/themes/cosmetics/homepage.php:11) in/home/content/16/8000816/html/wp-content/themes/cosmetics/mobile_device_detect.php on line 165 I can't see anything obvious, like white space etc. It is probably something simple but I just can't see the problem myself. Naturally, you will need to be able to view the site on a mobile phone if you bid for this job.
yes, you would need to ask them for rights to modify their code. typically, javascript or server side script is used.