Social Media Icons with Font Awesome
-
Hey.
I’m just working on my wordpress-site and I wanted to include some icons as a link to my social media accounts.
By description the plug-in Font Awesome seemed like the right tool to do it, so I installed and activated it.
I tried to add a stroopwafel-symbol by adding "HTML" and then entering this <i class=fas fa-stroopwafel"></i>-thingy.
I also tried to add the same thing as a "shortcode" ([icon name="stroopwafel"]).
Neither worked out, there is no stroopwafel-symbol showing up when reloading the project page.
What am I doing wrong? Any ideas?
Thanks in advance
j.
-
Dear @hellojensi
stroopwafel-symbol :-DNot sure if Fontawesome works.
Will check with Armin.
Best!
Marius -
link link link?
-
Hello, Font Awesome works great with lay. I use it like that:
-
Sign in at font Awesome and create a free kit.
-
When your Kit is created you get a script code.
-
Copy the script code to the <head> section at lay's Custom CSS & HTML.
I use links and script in the <head> section
<link href="/your-path-to-fontawesome/css/fontawesome.css" rel="stylesheet"> <link href="/your-path-to-fontawesome/css/brands.css" rel="stylesheet"> <link href="/your-path-to-fontawesome/css/solid.css" rel="stylesheet"> <script src="https://kit.fontawesome.com/ae25ce5210.js" crossorigin="anonymous"></script>
After this i put the Font Awesome Snippet i want in the html section of my Text for example:
<p style="text-align: left;"><i class="fa fa-envelope-square fa-lg"></i> <a href="mailto:info@yoursite.de">E-Mail</a></p>
And when you want to customize each icon you can again use the Custom CSS like this:
.fa-fish { color: salmon; } .fa-envelope-square, .fa-calendar-check-o, .fa-map-marker-alt, .fa-link { color: dodgerblue; } .fa-phone-square-alt { color: dodgerblue; } .fa-user-ninja.vanished { opacity: 0.0; } .fa-facebook { color: rgb(59, 91, 152); }
-
-
Dear @aerotec
Thank you for helping!
We appreciate the time people take to make the LayTheme community stronger.
Best!
Marius -
@arminunruh That’s www.thejensstein.com … I’m not very good at this internet stuff (aka css), but I managed to create a font out of the symbols I wanted to use with some tool called icomoon and it worked out fine for my footers.
The Font Awesome-advice by aerosec looks reasonable but I’m lazy right now.
-
Dear @aerotec
let me know where I can help :-)
Best!
Marius
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it