- This topic has 8 replies, 3 voices, and was last updated 6 years, 7 months ago by Leo.
-
AuthorPosts
-
September 10, 2017 at 7:22 am #382731Denise
In the customizer I have set the blog columns to 4. I have the layout container set to 1200. I would like to have more control over when the columns per page goes from 4 to 3 to 2 to 1 as the browser window get smaller. Right now, it goes for 4 to 2 at 1025 pixels. It never goes to three. This is for blog, archive and search pages. I am using a child theme and not using any plugins except your premium GP. I am not using the hooks and filters feature, and instead putting code in the child functions.php.
I have looked at using the code for “add_filter( ‘generate_blog_get_column_count’,’generate_custom_column_count’ )” but that doesn’t control the responsive @media breaks.
Thanks so much for your great theme and super support =)
September 10, 2017 at 9:55 am #382816TomLead DeveloperLead DeveloperHi there,
We’ll likely have to write some media queries. Can you link us to your page possibly? 🙂
September 10, 2017 at 10:48 am #382838DeniseHi Tom,
The site is still under construction and has a password on the site. I can send it to you. Where should I send it?
Thanks,
DeniseSeptember 10, 2017 at 12:43 pm #382895LeoStaffCustomer SupportThrough Account Issue here: https://generatepress.com/contact/
Please reference the topic. Thanks!
September 10, 2017 at 3:06 pm #382958LeoStaffCustomer SupportCan you give some ideas on what px you would them to change to 3-2-1?
Right now this is the responsive breakpoints: https://docs.generatepress.com/article/responsive-display/
September 10, 2017 at 4:34 pm #382970DeniseHi Leo,
Thanks for your quick response. I don’t have the exact pixel points determined yet. I want to be able to play with the layout and decide what looks best. Right now it’s jumping from four columns to two columns. And I’d like a midway time when it is three columns. I’m not basing this on device, but on the fluid browser window size and how the page looks. I will also be playing around with the container width.
If you can tell me the basic methodology, I can figure out the breakpoints myself. So what would be the steps I need to take to control this? I’m pretty comfortable writing css, media queries, php and html.
Thanks,
Denise Dreher
Database Programmer / Analyst
Macalester CollegeSeptember 10, 2017 at 5:19 pm #382980LeoStaffCustomer SupportHmm the code would be slightly different depending on when you want the break point to be.
Try this CSS first to see if you can get the idea:
@media (min-width: 900px) and (max-width: 1200px) { .grid-25 { width: 33%; } }
September 10, 2017 at 6:06 pm #382996DeniseGreat. Thanks, Leo. I had a feeling that’s what the solution would be, but I didn’t want to implement it without getting the okay from the GP team =)
I have marked this as resolved.
Best wishes,
DeniseSeptember 10, 2017 at 6:51 pm #383002LeoStaffCustomer SupportSounds good. Let me know if you get stuck!
-
AuthorPosts
- You must be logged in to reply to this topic.