[Resolved] Mini cart does not scroll when part of sticky navigation

Home Forums Support [Resolved] Mini cart does not scroll when part of sticky navigation

Home Forums Support Mini cart does not scroll when part of sticky navigation

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1400327
    Eric

    I just rebuilt my site with GeneratePress and I’m loving it. One minor problem I’ve discovered is that the mini cart, which is attached to my primary menu and sticky navigation, does not scroll vertically when the sticky navigation is activated. It is not a huge issue, as it is typically only noticeable when a user has a lot of products in the cart and would need to vertically scroll to see them all or get to the buttons at the bottom. I suppose it could also be an issue on smaller screens or windows.

    Anyway, thanks for any help or guidance you can provide!

    #1400523
    David
    Staff
    Customer Support

    Hi there,

    you could limit the height of the Item list and make is scrollable.
    Try this CSS:

    #wc-mini-cart ul.woocommerce-mini-cart {
        max-height: 450px;
        overflow-y: scroll;
    }
    #1400601
    Eric

    That did the trick! Thanks so much, David.

    #1400604
    David
    Staff
    Customer Support

    Glad to be of help

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