Site logo

[Resolved] Tablet Sidebar Visibility

Home Forums Support [Resolved] Tablet Sidebar Visibility

Home Forums Support Tablet Sidebar Visibility

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2526700
    Matt Stern

    Hi there,

    Is it possible to keep the right sidebar in place as low as 768px? It currently goes below the main content at 768px, but I think it would look good on ipads of that size. 🙂

    Link here: https://sternstaging2.com/the-surprising-ways-that-sleep-affects-your-metabolism/

    Thanks kindly,

    Matt

    #2526707
    Fernando
    Customer Support

    Hi Matt,

    What dimension for instance are you looking at for a tablet below 768px width?

    #2526715
    Matt Stern

    Well, it’s 35% on desktop, so maybe 25% or 30%. That would be around 200px at 768. Does that help?

    #2526726
    Fernando
    Customer Support

    I see. Can you try adding this snippet?:

    add_filter( 'generate_media_queries', function( $queries ) {
        $queries['mobile'] = '(max-width: 767px)';
    
        return $queries;
    } ); 

    This snippet moves the breakpoint of tablet to 768px.

    Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets

    #2526751
    Matt Stern

    Added via code snippets, but see no change to layout. I’ll check back tomorrow to see if you have another idea, not a big deal if not. Thanks.

    #2526766
    Fernando
    Customer Support

    I see. Can you try adding this through Appearance > Customize > Additional CSS?:

    @media (min-width: 768px) {
        body .site-content {
            flex-direction: row;
        }
    }
    #2550412
    Matt Stern

    Hi Fernando, I decided to set this aside for now. Thanks!

    #2556793
    Fernando
    Customer Support

    I see. You’re welcome, Matt!

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