All things Shopify and commerce
Hello there ,
Is there any way to reduce the left and right margin of the sliders in the home page , so that it aligns with the border of the website. Right now the sliders have no margin it streches across the size of the screen , I want the margin and it border to be fixed along with the websites margin, Any ideas on how to solve this issue?
Site url :: https://dikqyq72w43x0w8i-71493648693.shopifypreview.com
Hi,
CSS file. It's often named styles.css or theme.css.
Add Custom CSS
.slider-class {
margin-left: 20px; /* Adjust the left margin as needed */
margin-right: 20px; /* Adjust the right margin as needed */
}
Replace .slider-class with the actual class or ID
Save->preview and publish
Hi ,
I tried this code , but it is not working .
Hi @Anonymous ,
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.liquid
Step 3: Paste the below code at the bottom of the file -> Save
<style>
#shopify-section-template--21179090436405__166444164940fb6e0d .container{
max-width:unset
}
</style>
Hope my solution works perfectly for you!
Best regards,
Oliver | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Hi there,
I'm facing the same issue, if someone has found a solution, thanks for sharing!
Best
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024