[Resolved] How to keep left side bar sticky

Home Forums Support [Resolved] How to keep left side bar sticky

Home Forums Support How to keep left side bar sticky

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1413598
    Winnie

    Hi, I tried implementing your CSS, but it’s not sticky. https://generatepress.com/forums/topic/sticky-left-sidebar-and-styling-without-plugin/

    Can you help me take a look at what went wrong?

    Thank you so much!

    Best,
    Winnie

    #1413972
    Leo
    Staff
    Customer Support

    Hi there,

    Can you try this instead?

    .both-sidebars #left-sidebar .inside-left-sidebar {
        height: 100%;
    }
    .both-sidebars #left-sidebar .inside-left-sidebar .widget_nav_menu {
        position: -webkit-sticky;
        position: sticky;
        top: 50px;
    }
    #1415828
    Winnie

    Hi Leo, I have tried your code, it’s not working.

    #1415849
    David
    Staff
    Customer Support

    Hi there,

    try this CSS:

    .site-content {
        display: flex;
    }
    .site-content > div {
        left: unset !important;
    }
    
    #left-sidebar {
        order: -1;
    }
    
    #left-sidebar .inside-left-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 80px;
    }
    #1417277
    Winnie

    Hi David, I have inserted your code, it is not working.

    #1417338
    David
    Staff
    Customer Support
    #1423220
    Winnie

    Hi David,

    The latest code is working now, thank you!

    Best,
    Winnie

    #1424260
    David
    Staff
    Customer Support

    You’re welcome

    #1424787
    Walter Schwarz

    Hi,

    the code works perfectly. But it does not with my #breadcrumbs positioned on top and across all three columns of the content area. Any solution for this?

    https://drwjs.com

    Cheers

    #1424890
    David
    Staff
    Customer Support

    Hi there,

    your site URL is reporting 502 bad gateway.

    Can you fix that and create a new topic where we can look at your issue.

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