We're merging with GenerateBlocks! Learn more here.

[Resolved] change rows on tablet

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support change rows on tablet

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #19673
    heinrich
    Participant

    Hi,

    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.

    #19701
    elvin
    Moderator

    You can definitely do that with custom CSS.

    Can you link us to your page so we can take a look/provide CSS?

    #19735
    heinrich
    Participant

    Hi Elvin,

    Thant would be great thanks a lot.
    website: http://boombox.kinsta.cloud/

    If you need anything else let me know.

    #19761
    elvin
    Moderator

    Are 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.

    #19769
    heinrich
    Participant

    Hi 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)

    #19788
    Tom
    Keymaster

    Where 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 🙂

    #19792
    heinrich
    Participant

    Hi 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

    #19923
    Tom
    Keymaster

    Give this CSS a shot:

    @media (max-width: 1024px) and (min-width: 768px) {
        #wpsp-699 article {
            width: 50%;
        }
    }
    #19994
    heinrich
    Participant

    Hi Tom,

    thanks for your help but unfortunately it doesn’t for either….

    #20051
    Tom
    Keymaster

    I’m not seeing the CSS on your site – is it still added?

    #20172
    heinrich
    Participant

    Hi Tom,

    yes the CSS ist still on my site. Screenshot CSS

    #20224
    David Beckwith
    Participant

    Hi 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.

    #20317
    heinrich
    Participant

    Hi 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?

    #20324
    heinrich
    Participant

    Thanks for you help I got it!

    #20392
    David Beckwith
    Participant

    Glad to hear that.

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.