Web Analytics Made Easy -
StatCounter Mobile Site / Redirection - CodingForum

Announcement

Collapse
No announcement yet.

Mobile Site / Redirection

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mobile Site / Redirection

    Good afternoon

    I'm in the middle of messing around with some scripts and I'm going to make a simple layout for mobile users, what is the best way of getting them on it? I personally don't like mobile sites, 95% of the time I'll just view the desktop site on my mobile but everyone is different.

    I'm thinking of just adding a GET so they just click a link and boom their on the mobile site.

    My site is setup as follows, I can merge the two header & footer files depending how I go about this

    Desktop Site
    header.php
    page.php
    footer.php

    Mobile Site
    m_header.php / header.php?m=y
    page.php
    m_footer.php / header.php?m=y

    Thanks

  • #2
    Having separate pages for mobile users died out years ago. Now properly responsive web pages adapt to display whatever will fit in a given browser width regardless of the device type.

    There is no specific cut off between mobile and larger devices any more to use to select between the different pages.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

    Comment


    • #3
      So using bootstrap would be a much better idea?

      Comment


      • #4
        Originally posted by Hayden93 View Post
        So using bootstrap would be a much better idea?
        not much better - slightly better. Just about any other responsive alternative is better than bootcrap
        Stephen
        Learn Modern JavaScript - http://javascriptexample.net/
        Helping others to solve their computer problem at http://www.felgall.com/

        Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

        Comment


        • #5
          Are there any you would recommend

          Comment


          • #6
            I'd recommend using HTML (which is responsive by default) and not applying anything in the CSS that stops it being responsive.
            Stephen
            Learn Modern JavaScript - http://javascriptexample.net/
            Helping others to solve their computer problem at http://www.felgall.com/

            Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

            Comment


            • #7
              Just about any other responsive alternative is better than bootcrap
              I know a few of you here are down on Bootstrap, but it should be mentioned it works perfectly with no problems "out of the box" and sets up very quickly at that. Your site is not going to hang or crash or have any problems because you use it. You can also do a custom download from their site and only include the components you know you are going to use and it is responsive by default.

              I personally only use it for back end admins. Without a lot of customization, it looks to bootstrap generic on the front end imo.
              To save time, lets just assume I am almost never wrong.

              The XY Problem
              The XY problem is asking about your attempted solution (X) rather than your actual problem (Y). This leads to enormous amounts of wasted time and energy, both on the part of people asking for help, and on the part of those providing help.

              Make A Donation https://www.paypal.me/KevinRubio

              Comment

              Working...
              X