Home › Forums › WoodMart support forum › Changing wishlist icon to svg image
Changing wishlist icon to svg image
- This topic has 13 replies, 2 voices, and was last updated 4 years, 2 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
January 28, 2021 at 10:02 am #262032
DakenmarktParticipantHey everyone,
I have read through 2 other posts i found about this topic but they did not fix the issue I’m having.
I would like to change the wish list heart shape (on all the locations, like the header, but also the wish list page, etc) to an svg image i have made.
i did find a snippet of css in another post but it didn’t seem to change anything.
Thanks for any info and let me know if I need to provide additional details! π
January 28, 2021 at 12:50 pm #262112
Aizaz Imtiaz AwanKeymasterHello,
First of all thanks for choosing our Theme, we are glad to be you in the WoodMart WordPress family :).
You can change the wishlist icon in the header by editing the header.
Screenshot for Clarification: https://prnt.sc/xrbggq
And for the wishlist page please provide the URL of the website along with the SVG icon URL to check it myself and help you out accordingly.
Regards.
Xtemos Studios.January 29, 2021 at 7:43 am #262323
DakenmarktParticipantOh! I just thought I could change it to a gear icon… but no, this makes way more sense. π
Thanks, I’ll try it in a bit, and report back. π
January 29, 2021 at 8:08 am #262328
Aizaz Imtiaz AwanKeymasterHello,
Ok We will wait for your next reply.
Best Regards.
January 29, 2021 at 8:08 am #262329
DakenmarktParticipantAlright, as promised I will report my findings now:
Thanks for pointing me in the right direction, i now have a changed image. π
I would like to ask however, how i can change its size to be consistent with the cart icon?
Check the attachement to see how it looks now.
I would like to also manipulate its color to be white by default and yellow when i hover over it with the cursor. The cart icon already does this so I’m wondering if its possible with svg image as well, since I’m using an svg as the wishlist icon now. Any ideas?Thanks again!
Attachments:
You must be logged in to view attached files.January 29, 2021 at 10:53 am #262364
Aizaz Imtiaz AwanKeymasterHello,
You are Most Welcome.
For the size of the SVG icon you need to open your SVG icons file with some editor like Sublime Text or default system text editor and add width=β25β³ height=β25β³ attributes to your
Then you will need to re-upload your icons in WordPress Dashboard.
The color of the SVG icon is defined in the icon’s SVG file and there is no option in Theme Settings available to change the color as you mentioned.
Please provide the URL of the website to check whether it is possible with Custom CSS or not.
Best Regards.
January 29, 2021 at 11:31 am #262373
DakenmarktParticipantYes, changing the svg size worked perfectly. I did not think of this since i thought svg’s are resizable to any size, but thanks!
The website is currently being worked on, and is not live. I have put the url in the private part. I thought i read somewhere that manipulating svg’s via css was possible, if its not i don’t know if we can even make it different colors for normal, and hover…
Thanks for the help btw πJanuary 29, 2021 at 12:45 pm #262390
Aizaz Imtiaz AwanKeymasterHello,
You are Most Welcome.
Sorry, but it is not possible to change the color of the SVG icon in the header using Custom CSS. You need to use a colored SVG icon according to your needs.
Best Regards.
January 29, 2021 at 12:58 pm #262395
DakenmarktParticipantCan i use a different svg for normal state and hovered state?
as in load yellow svg when mouse over, load white svg when not mouse over?January 30, 2021 at 6:16 am #262549
Aizaz Imtiaz AwanKeymasterHello,
Sorry but there is no such option in Theme Settings that you can use two different icons on hover and normal state.
And you need to use colorful
svg
icons according to your needs.Best Regards.
February 1, 2021 at 8:44 am #262916
DakenmarktParticipantSo you’re saying I can make 1 svg that is white but also becomes yellow on mouse over? and I can make set the svg to do that instead of css?
I know you can make svg’s colorful, but I did not know this. I will take a look at it and report backFebruary 1, 2021 at 11:45 am #262954
Aizaz Imtiaz AwanKeymasterHello,
The color of the SVG icon is added inside the SVG file that’s why I replied. And the SVG in the header is added using the
tag by default and it is not possible to change the color of the SVG with CSS.
Ok, we will wait for your next reply.
Best Regards.
February 2, 2021 at 9:52 am #263210
DakenmarktParticipantThanks again for all the help. For now we’ll have to find another way to achieve this goal, but this topic can be closed.
I wish you the best
February 2, 2021 at 10:34 am #263225
Aizaz Imtiaz AwanKeymasterHello,
We are thrilled that you loved your experience with XTEMOS, We put customer experience and satisfaction as our priority,
and your words reaffirms the hard work we put in every day. So thanks for your kind words and we look forward to seeing you again.Let us know if thereβs anything else we can do for you! You can always reach us at any time. We are always here to help you.
Have a wonderful day.
Topic Closed.
Best Regards. -
AuthorPosts
Tagged: svg header icon wishlist
The topic ‘Changing wishlist icon to svg image’ is closed to new replies.
- You must be logged in to create new topics. Login / Register