What's your biggest current challenge? Have your say in Community Polls along the right column.

I want to add scrollable content on my product pages?

I want to add scrollable content on my product pages?

eddiebroke
Shopify Partner
1 0 2

 

Hello Community, There are almost 1000 to 1200 words of content in my product page, that why I want to add scrollable bar on my product page like above one.

Screenshot_1.pngScreenshot_2.png

Here is the example of site

cigmavape.com

Replies 2 (2)

ZestardTech
Shopify Partner
5912 1067 1413

Hello @eddiebroke 

 

Please share your store URL and password.
So that I will check and let you know the exact solution here.

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing

rajweb
Shopify Partner
396 39 52

Hey @eddiebroke ,

To add a scrollable area to your product page, similar to the examples shown in the images, you can wrap the long content in a container with a fixed height and enable scrolling with CSS. Here’s a basic example of how to achieve that:

1. HTML Structure: Wrap your product description content in a container:

<div class="scrollable-description">
    <!-- Your long product description content goes here -->
    <h2>Product Description</h2>
    <p>... (long description text) ...</p>
</div>

2. CSS Styling: Set a fixed height and make the content scrollable within this container.

.scrollable-description {
    max-height: 300px; /* Adjust height as needed */
    overflow-y: auto;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Optional: Add styling to the scrollbar */
.scrollable-description::-webkit-scrollbar {
    width: 8px;
}

.scrollable-description::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

.scrollable-description::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

This approach will ensure that long content fits neatly into a defined area with scrolling, improving readability and maintaining a clean layout on your product page

 

If I was able to help you, please don't forget to Like and mark it as the Solution!
If you’re looking for expert help with customization or coding, I’d be delighted to support you. Please don’t hesitate to reach out via the email in my signature below—I’m here to help bring your vision to life!

Best Regard,
Rajat Sharma

-Need a Shopify developer?
https://rajatweb.dev/
Email: rajat.shopify@gmail.com