Mobile Website redirection help!!!

Discussion in 'HTML & Website Design' started by coyote7, Feb 2, 2012.

  1. #1
    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!
     
    coyote7, Feb 2, 2012 IP
  2. spesialis

    spesialis Member

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #2
    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>
     
    spesialis, Feb 4, 2012 IP
  3. VUClub.Net

    VUClub.Net Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    seems sound
     
    VUClub.Net, Feb 5, 2012 IP
  4. kangshao

    kangshao Peon

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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.
     
    kangshao, Feb 6, 2012 IP
  5. joyanu

    joyanu Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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.
     
    joyanu, Feb 6, 2012 IP
  6. D3rek

    D3rek Well-Known Member

    Messages:
    1,345
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    100
    #6
    yes, you would need to ask them for rights to modify their code. typically, javascript or server side script is used.
     
    D3rek, Apr 14, 2012 IP