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

iPhone and iPad problem

Hello,

I have theme that uses some media-queries and styles, but it looks like when I open it from my iphone, NO styles are used, do you guys know what may be problem?

4 Answers

Gareth Redfern
Gareth Redfern
36,217 Points

Hi Ivan, have you included the viewport meta tag in the head of your page, have a look for:

<meta name="viewport" content="width=device-width, initial-scale=1.0">

I have included that, I just noticed that this is not working thru my MAMP PRO, but when I upload everything is good, any ideas?

Gareth Redfern
Gareth Redfern
36,217 Points

I wouldn't have thought running on MAMP Pro or on a live server should affect that, could you post your code somewhere, maybe on github?

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Check that they are not device specific media queries, that may affect where they show. I would also try writing your own custom queries that you know should work to test if its not something else. Is the theme demo somewhere on a test site somewhere you can check to see if its working?