Hello, I am using the Refresh theme on my shop and I just added some new icons, however, they’re really big and I’d like to size them down to be the same size as the default icons. How can I do that?
Topic summary
A user working with the Refresh theme needs to resize custom icons in their header to match the default icon sizes. An attached screenshot shows oversized icons in the header area.
Proposed Solutions:
Two community members offered CSS-based fixes:
- PageFly-Henry’s approach: Add CSS code to the
base.cssfile targeting.header__iconand.header__icon--cart .iconwith a width of3rem - theycallmemakka’s approach: Insert CSS via
<style>tags in thetheme.liquidfile just above the</body>tag
Current Status:
The issue remains partially unresolved. Another user (sosober) reported that the suggested code only resizes the cart icon, while account and search icons remain unchanged. The original poster has not confirmed whether either solution fully resolved their problem.
Both solutions require editing theme code files, with specific CSS targeting header icon elements.
Could you share with me the page URL, I will help you check it. Thank you
@a1dan Please provide website url.
Hi @a1dan
This is Henry from PageFly - Landing Page Builder App
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file base.css
Step 3: Paste the below code at bottom of the file → Save
.header__icon, .header__icon–cart .icon {
width: 3rem !important;
}
Hope that my solution works for you.
Best regards,
Henry | PageFly
Sure, it’s mystiqshop.org
Yes, please try with my code above.
Thank you.
Hi @a1dan
Follow these Steps:
- Go to Online Store
- Edit Code
- Find theme.liquid file
- Add the following code just above tag
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Best Regards,
Makka
Using this code on my website works only with the cart icon while account and search do not change.
