font awesome problem

Post Reply
User avatar
amr
Master Bludit
Posts: 56
Joined: Fri Apr 22, 2016 8:36 am
Location: Egypt
Contact:

hello guys , could someone guide me with fontawesome ?
example code :

Code: Select all

 <?php
		if($Site->twitter()) {
			echo '<a class="list-group-item" href="'.$Site->twitter().'"<i class="fa fa-twitter fa-fw"</i>&nbsp; Twitter</a>';
		}
if i did it this way , the fa icon doesn't appears
but if i did this way it appears

Code: Select all

if($Site->facebook()) {
			echo '<li><a href="'.$Site->facebook().'" class="fa fa-facebook"><span class="label">  Facebook</span></a></li>';
		}


although i wanna use it the first method , because it fit the need of style of a new theme i am creating , cold someone help ?
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

In the first snippet a ">" is missing. It should be:

Code: Select all

<i class="fa fa-twitter fa-fw"></i>
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply