Shopify themes, liquid, logos, and UX
Hi,
I want to place below icons on my homepage in one row for mobile version. Currently there are 4 rows and 2 columns. If everything is one row that means horizontal scroll bar will be enabled. My main purpose to make it so that these icons don't take the whole screen in one glance.
Could you please help with it?
Website: hamperpick.in
Solved! Go to the solution
This is an accepted solution.
Hi @thingsontheway,
You can follow these steps to make the effect
1. Open Online Store > Theme > Edit Code
2. Find and open the base.css (or theme.css, custom.css) file
3. Paste the code snippet below at the bottom of the file and hit save
#shopify-section-template--18018607202550__icon_with_text_custom_gX6Rpn ul {
flex-wrap: nowrap;
justify-content: flex-start;
padding-bottom: 15px;
overflow-x: scroll;
}
#shopify-section-template--18018607202550__icon_with_text_custom_gX6Rpn ul::-webkit-scrollbar {
/* Uncomment this line if you want to hide the scroll bar */
/* display: none; */
}
Here is the result
Hope this helps you solve the issue.
Please don't forget to Like and Mark it as an Accepted Solution if you find this helpful. Thank you!
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
This is an accepted solution.
Hi @thingsontheway,
You can follow these steps to make the effect
1. Open Online Store > Theme > Edit Code
2. Find and open the base.css (or theme.css, custom.css) file
3. Paste the code snippet below at the bottom of the file and hit save
#shopify-section-template--18018607202550__icon_with_text_custom_gX6Rpn ul {
flex-wrap: nowrap;
justify-content: flex-start;
padding-bottom: 15px;
overflow-x: scroll;
}
#shopify-section-template--18018607202550__icon_with_text_custom_gX6Rpn ul::-webkit-scrollbar {
/* Uncomment this line if you want to hide the scroll bar */
/* display: none; */
}
Here is the result
Hope this helps you solve the issue.
Please don't forget to Like and Mark it as an Accepted Solution if you find this helpful. Thank you!
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Hi @BSS-TekLabs I missed your comment.
I added your code at the end of theme.liquid file. But it didn't make any impact. Also it seems like code format is something else. There is no color font specific to the code.
@BSS-TekLabs I remove the piece of code from theme.liquid and pasted in base.css. Code format looks fine now.
But, it didn't make any impact. Attaching screenshot.
@BSS-TekLabs I figured it out. Thanks for your assistance. It helped a bunch. 🙂
Hey can you help me figure how you got it to work?
Got it....so stupid i was the ID of the collection needs to be updated as per my ID
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025