Welcome Guest, Not a member yet? Register   Sign In
Making fonts awesome work ?
#3

(05-31-2015, 12:11 PM)lexxtoronto Wrote: I've been struggling with fa fa icons not showing up. Then I found this solution on SO and it worked:

That's in config.php, I used to have $config['base_url'] = 'http://www.mysite.ca' Then I changed it to:


Code:
$root=(isset($_SERVER['HTTPS']) ? "https://" : "http://").$_SERVER['HTTP_HOST'];
$root.= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
$config['base_url'] = $root;

Is this a standard way to make fonts awesome work or there is a simpler way? And why it worked when I changed it?

CI 2.2.2

If you autoload url helper also and place the code below in header http://fortawesome.github.io/Font-Awesome/get-started/


Code:
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply


Messages In This Thread
Making fonts awesome work ? - by lexxtoronto - 05-31-2015, 12:11 PM
RE: Making fonts awesome work ? - by Diederik - 05-31-2015, 04:27 PM
RE: Making fonts awesome work ? - by wolfgang1983 - 05-31-2015, 06:05 PM
RE: Making fonts awesome work ? - by pgfepale - 03-14-2016, 04:14 AM
RE: Making fonts awesome work ? - by InsiteFX - 03-14-2016, 05:07 PM
RE: Making fonts awesome work ? - by souravlove - 06-08-2018, 02:44 PM
RE: Making fonts awesome work ? - by PaulD - 03-14-2016, 07:07 PM
RE: Making fonts awesome work ? - by albertleao - 03-14-2016, 09:11 PM
RE: Making fonts awesome work ? - by PaulD - 03-15-2016, 09:04 AM
RE: Making fonts awesome work ? - by AmarBunty - 05-05-2016, 10:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB