Home › Forums › WoodMart support forum › SVG not working properly
SVG not working properly
- This topic has 9 replies, 4 voices, and was last updated 5 years, 3 months ago by Bogdan Donovan.
-
AuthorPosts
-
September 4, 2019 at 3:36 pm #142062
MJParticipantHello
Could you please tell me what i’m missing? SVG never working in info box.
take a look on the pictures provided
Attachments:
You must be logged in to view attached files.September 4, 2019 at 6:16 pm #142088
Elise NoromitMemberHello,
To fix this problem, you need to open your SVG icons file with some editor like Sublime Text or default system text editor and add height and width attributes to your
<svg>
tag like it is shown on the screenshot https://gyazo.com/83fd36b0bb9628bb1aed2bd3d5d063c5
Then you will need to reupload your icons in the WordPress Dashboard.Best Regards
September 5, 2019 at 7:05 am #142152
MJParticipantHello
I’ve seen that solution many times before I tried it and still not working.
The SVG issue is in the following:
1- SVG icons not working properly in information box.
2- SVG logo has extra space to the right.Please provide me with another solution.
Many thanks
September 5, 2019 at 9:07 am #142153
Artem TemosKeymasterIt seems that
file_get_contents
function for URLs is disabled on your server. You need to contact your provider and ask to enable this option.Extra space on your logo is on your original SVG image so it is not affected by the theme https://gyazo.com/b0aedbb60a85280c6e23c5eb72325eee
September 6, 2019 at 11:25 am #142379
MJParticipantHello,
I contacted the server provider and they said it is already activated.
It is so weird, because the same SVG is working just perfect in the same page. But not in the info box!
See picture.Attachments:
You must be logged in to view attached files.September 6, 2019 at 12:59 pm #142397
Elise NoromitMemberHello,
Please provide the page URL where you use these SVG images.
Best Regards
September 6, 2019 at 1:01 pm #142399
MJParticipantHere you go!
September 6, 2019 at 1:06 pm #142401
Elise NoromitMemberHello,
The problem is caused by SVG itself: some of your SVG images have the styles which are applied to the whole page. https://prnt.sc/p2o2zc
In the result styles of one SVG icon influence the other. In order to solve this, you need to insert inline styles without classes, for example, https://prnt.sc/loz0mw
Best Regards
September 6, 2019 at 1:10 pm #142403
MJParticipantPlease tell me how to fix it not with codes, because I’m not a developer. I can thought adobe illustrator to edit vectors
September 7, 2019 at 6:20 am #142468
Bogdan DonovanKeymasterHi,
Embedded SVG styles applied to each individual image cant be removed by WordPress theme. If your SVG styles classes use the equal name they will interfere with each other. You can open your SVG image in any text editor and manually change styles to inline like is shown on this screenshot https://prnt.sc/loz0mw.
If you create SVG in Illustrator we would suggest to export SVG with appropriate CSS properties in the first place. During export from Illustrator choose
:style attributes
. You can read more about resolving this issue in Illustrator here https://cobwwweb.com/inline-style-attributes-svg-elements.Regards
-
AuthorPosts
Tagged: svg
- You must be logged in to create new topics. Login / Register