Home › Forums › Pro Support › change rows on tablet
- This topic has 14 replies, 4 voices, and was last updated 3 years ago by
David Beckwith.
-
AuthorPosts
-
September 21, 2020 at 2:38 am #19673
heinrich
ParticipantHi,
i´m using wpsp to display 3 posts in a rows on desktop, but i´d like to display only 2 posts in a row on tablet. how can i achieve that?
Thanks for your help.
September 21, 2020 at 1:02 pm #19701elvin
ModeratorYou can definitely do that with custom CSS.
Can you link us to your page so we can take a look/provide CSS?
September 22, 2020 at 12:13 am #19735heinrich
ParticipantHi Elvin,
Thant would be great thanks a lot.
website: http://boombox.kinsta.cloud/If you need anything else let me know.
September 22, 2020 at 5:05 pm #19761elvin
ModeratorAre you using WPSP Pro? If so, you can set the columns to 3. Then add this CSS.
@media (max-width: 767px){ .wp-show-posts-columns .wp-show-posts-single { width: 50%; } .wp-show-posts-inner { padding: 0 0 2em 2em; } }
Let us know if it works for you.
September 23, 2020 at 12:50 am #19769heinrich
ParticipantHi Elvin,
no it´s not working…
I just want a specific list to have 2 columns on tablet. I already entered a html class for that list (.wpsp-column-tablet)September 23, 2020 at 11:02 am #19788Tom
KeymasterWhere on the website is the list we’re targeting? I see a WPSP list on the homepage, but only one post is displaying and I’m not seeing the above class.
Let us know 🙂
September 23, 2020 at 11:12 am #19792heinrich
ParticipantHi Tom,
website: http://boombox.kinsta.cloud/fahrzeug-um-und-aufbauten/
List Shortcode: [wp_show_posts id=”699″]yes at the moment just 3 Posts in total are online and just 2 posts for that list are online.
Thanks
September 24, 2020 at 1:33 pm #19923Tom
KeymasterGive this CSS a shot:
@media (max-width: 1024px) and (min-width: 768px) { #wpsp-699 article { width: 50%; } }
September 25, 2020 at 1:54 am #19994heinrich
ParticipantHi Tom,
thanks for your help but unfortunately it doesn’t for either….
September 25, 2020 at 2:13 pm #20051Tom
KeymasterI’m not seeing the CSS on your site – is it still added?
September 27, 2020 at 11:30 pm #20172heinrich
ParticipantHi Tom,
yes the CSS ist still on my site.
September 28, 2020 at 9:51 am #20224David Beckwith
ParticipantHi there,
you have this code in your Simple CSS:
/*use static pages as catergorie archive*/ add_filter('request', function(array $query_vars) { if (is_admin()) { return $query_vars; } if (isset($query_vars['category_name'])) { $pagename=$query_vars['category_name']; $query_vars=array('pagename'=> "$pagename"); } return $query_vars; } );
That code is PHP and should not be in there ( it goes in your child theme functions.php or the Code Snippets pluigin ).
Remove that code and that CSS should work.September 29, 2020 at 7:41 am #20317heinrich
ParticipantHi David,
I have no idea why that was in the css code, must be done by mistake.
Now everything works great except the row gap is not equal to the column gap, on desktop and on tablet. How to address this with css?
September 29, 2020 at 8:38 am #20324heinrich
ParticipantThanks for you help I got it!
September 30, 2020 at 1:11 am #20392David Beckwith
ParticipantGlad to hear that.
-
AuthorPosts
- You must be logged in to reply to this topic.