11 Replies Latest reply on Jul 9, 2013 2:37 PM by thetrickster888

    Trying to redirect mobile users to dedicated mobile site

    LoveDesignWork

      Hi... I desperately need some help!  I am new to BC, but have read through documentation and tried the chat line twice.  I am trying to redirect mobile phone users to a dedicated mobile site.  I've created and uploaded the mobile website and added the following recommended script -

       

      <script type="text/javascript">          

      if ('{system_visitorDeviceClass}' == 'phone') {

              window.location = 'http://www.seerestaurant.com.au/mobile.seerestaurant/';

                 }       

      </script>

       

      between the head tags.  Of course the existing script is still there underneath that -

       

      -->

      </script> <script type="text/javascript"> <!-- window.location = "http://www.seerestaurant.com.au/restaurant/see-restaurant-mooloolaba-index.htm" //--> </script>

       

      But the redirect is not working?  Can anyone help me isolate the problem and get this working?

       

      Many thanks in advance