Reply To: Linking to different pages depending on screen size

Home Forums Support Linking to different pages depending on screen size Reply To: Linking to different pages depending on screen size

Home Forums Support Linking to different pages depending on screen size Reply To: Linking to different pages depending on screen size

#149821
Tom
Lead Developer
Lead Developer

You could try adding two links to the page.

For example:

<a href="smallpage.php" class="hide-on-desktop">Link to mobile</a>
<a href="bigpage.php" class="hide-on-mobile">Link to desktop</a>

The classes should display that link if it’s on mobile/desktop and hide the other one.

Let me know 🙂

  • This reply was modified 7 years ago by Tom.