Tell us what you are trying to do?
I'm trying to use Font Icons as links within a Content Template
I have currently:
[wpv-conditional if="( NOT(empty($(wpcf-website))) )"]Website [/wpv-conditional]
I would like to swap the text link Website for a font icon - I don't really mind which family - font awesome etc.
I tried using an SVG from the simple-social-icons plugin installed on my site but I guess ToolTypes Content Template does not like SVGs ?
[wpv-conditional if="( NOT(empty($(wpcf-facebook))) )"]<li class="ssi-facebook"> [/wpv-conditional]
What method do you recommend?
Thanks
What is the link to your site?
hidden link
Hello,
I assume we are talking about these:
1) Plugin "Simple Social Icons" download from:
https://wordpress.org/plugins/simple-social-icons/
2) a custom URL field "facebook" created with Types plugin.
I just test your codes in my localhost in a fresh wordpress installation + the latest version of Toolset plugins:
[wpv-conditional if="( NOT(empty($(wpcf-facebook))) )"]<li class="ssi-facebook"><a href="[types field='facebook' output="raw"][/types]" target="_blank" rel="noopener noreferrer"><svg role="img" class="social-facebook" aria-labelledby="social-facebook"><use xlink:href="<em><u>hidden link</u></em>"></use></svg></a>[/wpv-conditional]
It works fine in my Chrome browser, and I do see the facebook icon wrapped in a link, see screenshot: facebook-link.JPG
I suggest you check these:
1) Makes sure you are using the correct symbol-defs.svg link in your codes, you can put it into the post content directly, check if it works.
2) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2019, and test again
Thank you Luo for your fast response.
Your solution didn't work for me - perhaps as you suggest because of a plugin or theme conflict.
I did get it work coding the path to the SVG.7
[wpv-conditional if="( NOT(empty($(wpcf-facebook))) )"] [/wpv-conditional]
My issue is resolved now. Thank you!