Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Redirecting wp page that is customized for mobile view to a desktop page

Hi :)

I need help with redirecting page that is customized for "Mobile View" to a page that is customized for "Desktop View"

I need it due to, it may happen that, user will share the "Mobile Page" on Facebook for example, and somebody will open the link on his desktop.

I need a <script> or plugin solution, that detects screen size or user agent string and delivers the user with the correct page.

Quick answer will be very appreciated,

Daniel

1 Answer

You should use CSS and create responsive widths of your content. The browser determines the screen size or your CSS and JS. you can use a meta tag to display the with of the page that corresponds with the width of the device.