Announcement

Collapse
No announcement yet.

Detect mobile > alternate link

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

    Detect mobile > alternate link

    Hi. I know levels is mobile friendly as has some code in their to detect the device. We have some links on our site that popup a not mobile friendly modal colorbox, which contains a framed page. I was wondering if there was some easy code already supported by whatever is being used to detect the device that I could use to wrap that modal link, so that if it is a mobile device it just shows the framed page directly.

    ie.

    If NOT mobile device
    ShowModalLink
    Else
    ShowStandardLink

    #2
    All ReadyThemes are built upon a responsive, CSS framework; there is no mobile device detection built-in, per se. The best option would be to wrap you link in elements which are set to hide the modal link on smaller devices and show them on larger; with the inverse being set for the standard link. Alternately, you could code your modal pages to be responsive so the content would be available on all devices.
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment

    Working...
    X