Site logo

[Support request] right sidebar sticky

Home Forums Support [Support request] right sidebar sticky

Home Forums Support right sidebar sticky

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2476555
    robin

    Hello,

    How to make the right sidebar sticky like in the “info” demo theme?

    Thank you

    #2476566
    Fernando
    Customer Support

    Hi Robin,

    For reference, can you provide a link where we can view your right sidebar?

    We’ll asses how to make it sticky afterward.

    You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    #2476663
    robin

    hi,

    link is : https://www.raceschiens.fr/afador/

    Thanks

    #2476734
    David
    Staff
    Customer Support

    Hi there,

    if you can remove the CSS you have added, and use this instead:

    
    @media (min-width: 768px) {
        #right-sidebar .inside-right-sidebar {
            position: sticky;
            top: 80px;
        }
    }
    #2476824
    robin

    Hi,

    Thank you, but I would like the sidebar to be sticky when the bottom of the sidebar is reached as on this site: https://www.dicotravail.com/convention-collective/fleuristes-vente-services- Animaux-jo-3010- idcc-1978/

    thanks

    #2477052
    David
    Staff
    Customer Support

    So this CSS:

    
    @media (min-width: 768px) {
        #right-sidebar .inside-right-sidebar {
            height: 100%;
        }
        #right-sidebar .inside-right-sidebar aside:last-child {
            position: sticky;
            top: 80px;
        }
    }

    It will make the last widget sticky. You would need to add whatever content you want to be sticky in that last widget, if need be use a Group Block to combine multiple items

    #2477149
    robin

    it works ! thanks

    #2477688
    David
    Staff
    Customer Support

    Glad to hear that

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