- This topic has 13 replies, 2 voices, and was last updated 1 year, 11 months ago by
Leo.
-
AuthorPosts
-
April 9, 2020 at 12:40 pm #1233100
Janne
Hi.
Can you help me with displaying 2 columns instead of 1 on mobile in the blog? Found this code here. With the code I get two columns, but the two columns is only covering 50 % of the width.
@media (max-width: 767px) {
.mobile-grid-100 {
clear: none;
width: 50%;
}
}April 9, 2020 at 1:14 pm #1233136Leo
StaffCustomer SupportHi there,
What should happen to the featured post?
Also 50%?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 9, 2020 at 1:24 pm #1233152Janne
Do you mean if the featured post also is only half the width? yes.
April 9, 2020 at 1:36 pm #1233163Leo
StaffCustomer SupportTry this instead:
@media (max-width: 767px) { .generate-columns.mobile-grid-100 { clear: none; width: 50%; } }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 9, 2020 at 1:42 pm #1233177Janne
It worked, thanks. Is it possible to get some air between the images?
And is it possible to remove some info when on a small screen? For example the categories.April 9, 2020 at 4:26 pm #1233294Leo
StaffCustomer SupportTry this:
@media (max-width: 767px) .generate-columns-activated .generate-columns-container { margin-left: -40px; } .generate-columns-container>* { padding-left: 40px; } .generate-columns-container .page-header { margin-left: 40px; } .entry-meta { display: none; } }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 10, 2020 at 4:02 am #1233713Janne
It worked. It hovever looks like the page is wider than what what shows. When we are inside a category page, the title is cut. Check the link in the first post. And is it possible to also remove author and time published?
April 10, 2020 at 9:11 am #1234169Leo
StaffCustomer SupportEdited the CSS above:
https://generatepress.com/forums/topic/display-2-column-on-mobile-2/#post-1233294Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 10, 2020 at 12:42 pm #1234408Janne
Thanks, it worked. But is it possible to also remove author and time published?
April 10, 2020 at 2:09 pm #1234494Leo
StaffCustomer SupportMy CSS above should do that already:
https://generatepress.com/forums/topic/display-2-column-on-mobile-2/#post-1233294Looks like you didn’t update the last block.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 11, 2020 at 7:30 am #1235112Janne
Didn`t copy all, sorry. Works like a sharm now! Thanks.
April 11, 2020 at 9:57 am #1235407Leo
StaffCustomer SupportNo problem ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 10, 2020 at 8:08 am #1438236Evenit
Hi may you help me in display 2 columns in mobile also for my site? I tried your css but doesn’t work for me.
ThanksSeptember 10, 2020 at 9:29 am #1438332Leo
StaffCustomer SupportCan you open a new topic for your question?
Thanks ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- The topic ‘Display 2 column on mobile’ is closed to new replies.