Changing the theme SVG icon color
There’s currently no easy easy way to do that, but that’s possible.
Let’s take for example the Argento Force theme Shield icon on top.
And change YELLOW color to RED
- Save that icon locally.
- Open it with any text editor.
- find the following code responsible for yellow color
fill=#EDE734
- Change it to red one
fill=#F00
and save. - Now you have the icon with needed color.
- We need to convert SVG icon to code to prevent additional data load. Open some free SVG to Base64 converter (i.e. codebeautify) and upload your image there.
- Find the CSS Background Source and copy it.
- Open your theme and add your custom styles to theme Additional CSS Field in
Stores > Configuration > Swissup > Themes Editor > Argento Force > Additional CSS > CSS Styles
in the following way:
.force-icon.force-shield { '[YOUR COPIED CODE]' }
don’t forget to wrap that code into quotes ' '
.
It should look similar to:
.force-icon.force-shield { background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDlweCIgaGVpZ2h0PSI1N3B4IiB2aWV3Qm94PSIwIDAgNDkgNTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTg0LCAtMzc5NSkiPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4NC42NTM1ODgsIDM3OTYuNTM3MykiPjxwYXRoIGQ9Ik0zLjM1Njk4NzMzLDEyLjQwODQ4NjUgQzMuNDEzMjgxMDMsMTIuNDA4NzY2MSAzLjQ2OTU3NDczLDEyLjQwODk1MjUgMy41MjYwNTQ4MywxMi40MDg5NTI1IEMxMi45Mjk3MTIzLDEyLjQwODk1MjUgMjEuMDYxMDc2Miw4Ljc2NTUxOTg2IDI0Ljg4NTg3ODksMy40OTE5IEMyOC43MTA2ODE2LDguNzY1NTE5ODYgMzYuODQyMDQ1NSwxMi40MDg5NTI1IDQ2LjI0NTc5NjIsMTIuNDA4OTUyNSBDNDYuNjA5MDk1Ni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