Shopify themes, liquid, logos, and UX
I am using dawn latest version in that, i've added custom code for collection list slider, in that slider button needs to come little inside and in mobile the collection list image takes the full width and height ( I need in square 1:1)
website : https://rugd-in.myshopify.com/
password: rugged
Solved! Go to the solution
This is an accepted solution.
HI @Sivadarshan
I see you're using the Dawn theme and want to make some tweaks to your collection list slider button. Let's break down how to achieve those adjustments:
1-Adjusting Button Position:
You want the button to be positioned slightly further inside the slider. This will likely involve editing your theme's code. While I can't access your specific code due to the password, here's a general approach:
2-Making Images Square on Mobile:
You mentioned wanting the collection list images to be square (1:1 aspect ratio) on mobile devices. Dawn offers some built-in options for responsive design, but you might need a bit of code tweaking.
Here's what I would suggest:
@media screen and (max-width: 768px) {
.collection-list-slider__image {
width: 100%;
height: 100%;
}
}
This code snippet ensures that on screens smaller than 768px (typical mobile width), the image takes up the full width and height of its container, making it appear square.
Important Note: Editing theme code can be risky if you're not comfortable with it. Consider making a backup of your theme before implementing any changes.
3-Alternative Solutions:
If you need any further clarification or have questions about specific parts of the code, feel free to ask!
Best regards,
Daisy.
This is an accepted solution.
HI @Sivadarshan
I see you're using the Dawn theme and want to make some tweaks to your collection list slider button. Let's break down how to achieve those adjustments:
1-Adjusting Button Position:
You want the button to be positioned slightly further inside the slider. This will likely involve editing your theme's code. While I can't access your specific code due to the password, here's a general approach:
2-Making Images Square on Mobile:
You mentioned wanting the collection list images to be square (1:1 aspect ratio) on mobile devices. Dawn offers some built-in options for responsive design, but you might need a bit of code tweaking.
Here's what I would suggest:
@media screen and (max-width: 768px) {
.collection-list-slider__image {
width: 100%;
height: 100%;
}
}
This code snippet ensures that on screens smaller than 768px (typical mobile width), the image takes up the full width and height of its container, making it appear square.
Important Note: Editing theme code can be risky if you're not comfortable with it. Consider making a backup of your theme before implementing any changes.
3-Alternative Solutions:
If you need any further clarification or have questions about specific parts of the code, feel free to ask!
Best regards,
Daisy.
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025