How to make the product tabs menu sticky?

This topic has 8 replies, 2 voices, and was last updated 4 months, 1 week ago ago by Nicolo

  • Avatar: Nicolo
    Nicolo
    Participant
    August 11, 2025 at 21:49

    How can i make the tabs of the product pages sticky after they scroll down passed it?

    Recorded the element here:
    https://www.loom.com/share/af491d20033e42858c2f49e54a41b85b

    Here is an example of a sticky menu after you scroll down passed it:
    https://www.tudos.no/produkt/kaweco-piston-filler-metall-stempelfyller-fyllepenn-solo-black/

    Looking forward to hearing from you

    Regards

    Files is visible for topic creator and
    support staff only.
    7 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 12, 2025 at 07:39

    Hello @Nicolo
    Please, try adding next custom CSS snippet in your Theme Options -> Theme Custom CSS -> Global CSS:

    .single-product .template-container {
        overflow: visible;
    }
    
    .single-product .tabs.wc-tabs {
        position: sticky;
        top: 0;
        background: #fff;
        width: 100%;
        z-index: 3;
        transition: all .3s;
    }
    
    body.single-product:has(.site-header.sticky-on) .tabs.wc-tabs {
        top: 74px;
    }
    
    @media only screen and (max-width: 992px) {
    body.single-product:has(.site-header.sticky-on) .tabs.wc-tabs {
        top: 60px;
    }
    }
    

    Kind regards, Jack Richardson
    The 8theme’s team

    Avatar: Nicolo
    Nicolo
    Participant
    August 12, 2025 at 15:50

    Thanks for the CSS Jack, it works great.

    The only issue now is that when I switch between product tabs, the page doesn’t scroll to the top of the new tab’s content — it just swaps the content and keeps my old scroll position.

    https://www.loom.com/share/33f5faf31f9246d3b2405ee4c90ce9f5

    How can we make it so that clicking a tab always starts at the top of that tab’s content?

    I’ve added WP admin access in the secret field in case you want to do a quick troubleshooting test.

    Thanks alot for your help!

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 12, 2025 at 16:19

    Hello @Nicolo,

    Thank you for reaching out to us.

    The request you submitted involves a more advanced level of customization, which goes beyond the scope of basic CSS adjustments. As a courtesy, we have prepared a preliminary solution for you, which you can view here: https://prnt.sc/uQhKnDSNi6hT.

    Please note, however, that this type of customization is not covered under our standard support policy. If you require further enhancements tailored to your website, we kindly recommend submitting a customization request through your account at the following link: https://www.8theme.com/account.

    We appreciate your understanding and your respect for our support guidelines.

    Best regards,
    The 8Theme Team

    Avatar: Nicolo
    Nicolo
    Participant
    August 12, 2025 at 16:28

    Hi

    I cannot open the image you are trying to send.

    Thanks for claryfing though

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 12, 2025 at 16:29

    Hello @Nicolo
    https://gyazo.com/6b8aa05b4cad158b18d5edb26a60319a
    Kind regards, Jack Richardson
    The 8theme’s team

    Avatar: Nicolo
    Nicolo
    Participant
    August 12, 2025 at 17:56

    You added it!

    Thanks man, tested it and it works

    Have a great day

    Avatar: Nicolo
    Nicolo
    Participant
    August 12, 2025 at 17:56

    Thanks for the support! My topic “How to make the product tabs menu sticky?” has been successfully resolved.

  • Viewing 8 results - 1 through 8 (of 8 total)

The issue related to '‘How to make the product tabs menu sticky?’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.