- This topic has 10 replies, 2 voices, and was last updated 5 years, 9 months ago by
Tom.
-
AuthorPosts
-
January 13, 2017 at 5:33 am #263710
Daniel
I asked a question before either via the forum or email “what are the best media queries to use for GeneratePress”. Tom answered this before, but I can’t find the original email or post in the forum.
Could someone please tell me the best media queries (breakpoints) to use for Desktop, Tablet and Mobile in GeneratePress?
Thanks in advance.
January 13, 2017 at 7:36 am #263744Leo
StaffCustomer SupportHi Daniel,
This should help:
@media (max-width: 768px) { /* CSS in here for mobile only */ } @media (min-width: 769px) and (max-width: 1024px) { /* CSS in here for tablet only */ } @media (min-width: 1025px) { /* CSS in here for desktop only */ }January 13, 2017 at 9:46 am #263784Tom
Lead DeveloperLead DeveloperTo see your profile, just click on your username or avatar 🙂
January 14, 2017 at 10:56 am #264066Daniel
Thanks 🙂
January 14, 2017 at 11:00 am #264069Daniel
Regarding the my posts, I can only seem to get to them when I click a link in an email that takes me to a previous post. I can then click on my avatar and from there I can see my posts and favourites.
However, if I click my avatar at the top right of wordpress when logged in, it only takes me to my purchase profile. I can’t find anything to do with my forum posts.
I must be doing something wrong?January 14, 2017 at 1:51 pm #264120Leo
StaffCustomer SupportNope that’s what I see as well.
January 14, 2017 at 6:20 pm #264147Tom
Lead DeveloperLead DeveloperThat’s how it works currently – your account page and the forum are separated. I’d like to merge them at some point 🙂
June 8, 2020 at 6:55 am #1319120anabella
Hi,
I have a question regarding the media queries that Leo mentioned above.
I want to apply some CSS to mobile phone only, so I´m using @media (max-width: 768px).
I don´t have an iPad, but I´m checking Chrome developer tool to see how this looks, and it turns out that the changes I´ve made are also being applied to tablet (not what I want)I´ve checked the UIKit Size (Points) for ipads, and it says that many of them are 768 X 1024 (iPad Pro 9.7 inch, iPad air 2 and iPad mini 4), so it makes sense that my media query @media (max-width: 768px) is targeting those devices also.
I see that this thread belongs to 2017, so I´m not sure if the standard/recommendable media queries have changed?
June 8, 2020 at 9:46 am #1319538Tom
Lead DeveloperLead DeveloperHi there,
Nothing has changed on the GP-side of things. We still use 768px for most things if they make sense to display in mobile-mode on a portrait tablet screen as well.
June 11, 2020 at 12:18 am #1323086anabella
OK, thanks a lot Tom!
June 11, 2020 at 9:43 am #1323937Tom
Lead DeveloperLead DeveloperNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.