Personalized checkout and custom promotions with Shopify Scripts
I made my icons in inkscape and made all their svg. A guy here says that my svg is not optimized for shopify.
My svg:
Svg that the guy converted for me:
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" class="icon icon-account" fill="none" viewBox="0 0 18 19" > <path fill-rule="evenodd" clip-rule="evenodd" d="m 9.0009261,0.5 c -2.2213192,0 -4.0309777,1.8180738 -4.0309777,4.0493861 0,2.2313095 1.809695,4.0493482 4.0309777,4.0493482 2.2211179,0 4.0309769,-1.8178836 4.0309769,-4.0493482 C 13.031903,2.3180387 11.2222,0.5 9.0009261,0.5 Z m 0,1.4619213 c 1.4189829,0 2.5756709,1.1609143 2.5756709,2.5874648 0,1.4249509 -1.155196,2.5874261 -2.5756709,2.5874261 -1.4190216,0 -2.5757087,-1.1609029 -2.5757087,-2.5874261 0,-1.4269689 1.156854,-2.5874648 2.5757087,-2.5874648 z m -9.445e-4,7.509921 c -4.5821318,0 -8.35517897,3.6722207 -8.49962328,8.2734237 -0.0128906,0.412488 0.31644154,0.75392 0.72725628,0.753978 L 16.772311,18.5 c 0.410829,-1.5e-5 0.740202,-0.341437 0.727332,-0.75394 C 17.35526,13.14392 13.582114,9.4718423 8.9999429,9.4718423 Z m 0,1.4619587 c 3.5296704,0 6.4993784,2.629892 6.9807464,6.10424 l -13.9614171,-6.8e-4 c 0.4817147,-3.47417 3.4513754,-6.10356 6.980632,-6.10356 z" fill="currentColor"> </svg>
As the guy didn't contact me, I didn't know how to optimize my own svg into an svg for shopify. Does anyone know how to teach me how to do this?
Link to my conversation with the guy: Re: How to change account/login icon in Dawn 14.0.0
https://community.shopify.com/c/shopify-scripts/how-to-change-account-login-icon-in-dawn-14-0-0/m-p/...
My store link: https://mi8w9lspkvkx4fju-78296449301.shopifypreview.com
Solved! Go to the solution
This is an accepted solution.
Hi @PedroPrado,
Provided a new icon + css to your last message on the previous post - outlined some issues with the other custom SVG's dimensions.
Here are some steps to follow when replacing SVG icons on Shopify with Inkscape.
Disclaimer: There could be better ways, further optimisation steps or other SVG XML attributes required.
If you want to stop the hover effect, change color or change size - I recommend using CSS.
Newly created SVG
Shopify SVG file
Regards
This is an accepted solution.
Hi @PedroPrado,
Provided a new icon + css to your last message on the previous post - outlined some issues with the other custom SVG's dimensions.
Here are some steps to follow when replacing SVG icons on Shopify with Inkscape.
Disclaimer: There could be better ways, further optimisation steps or other SVG XML attributes required.
If you want to stop the hover effect, change color or change size - I recommend using CSS.
Newly created SVG
Shopify SVG file
Regards
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