February 25, 201511 yr Hi. My last question for now How i can load entirely different page on smartphones. I use media queries on my page, but want different html code also on phones.
February 26, 201511 yr If you are using something like bootstrap then there is the 'hidden-' and 'visible-' options. If you're not using something like this then you could also create your own class and remove the elements off the page using media queries if you need to.
February 26, 201511 yr If you want to present an entirely different page for mobile users you will have to detect the User Agent String that a browsers passes when requesting a page. You can find scripts for user agent checks here: http://detectmobilebrowsers.com/ If the script detects a mobile user agent you can either redirect the user to a static mobile version of the page or change html markup if the page is dynamic.
February 26, 201511 yr We tend to use http://mobiledetect.net/ a php library which we have found to be very useful for making such changes. we haven't had any issues as yet.
Create an account or sign in to comment