Page 1 of 1

font awesome problem

Posted: Wed Aug 16, 2017 6:36 pm
by amr
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 ?

Re: font awesome problem

Posted: Wed Aug 16, 2017 7:26 pm
by Edi
In the first snippet a ">" is missing. It should be:

Code: Select all

<i class="fa fa-twitter fa-fw"></i>