SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2010
    Posts
    84
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is this script correct?

    I recently asked a programmer to make my site mobile friendly. We set up a sub-domain and added <link rel="canonical"> for duplicate info.

    the site was then uploaded to a sub-domain and I was told to then enter the following script into my main site:

    <script type="text/javascript" src="http://www.domainname.com/m/mobile-switcher.js"></script>

    My questions is: is the above script telling all users to go to my mobile site first? I've seen other scripts that are placed into the main site and tells the browser that if the screen size is a certain width, the to redirect to the mobile site.

    I haven't a clue on scripting - any help or guidance please

  2. #2
    SitePoint Enthusiast
    Join Date
    Jan 2010
    Posts
    84
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay - so I'm dumb.
    Please ignore this thread - just realised what happens with the re-direct.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •