Custom font problems
Permalink
Hello.
I am fairly new with C5 (making my first site) and have run into a problem I cannot figure out.
I have converted a CSS template to C5 theme and split it into header.php, default.php and footer.php. No problems.
The problem arrises when I try to istall custom fonts. I have followed the procedures here:http://www.concrete5.org/documentation/how-tos/designers/how-to-add...
But when I add the line of code to the header, everything exept the background (all the divs) disappear. I have added the code now, so you can see. The address ishttp://www.anakwaana.com/akatest...
Here is the header.php code
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
?>
<!DOCTYPE html>
<html>
<head>
<?php Loader::element('header_required');?>
<link href="<?=$this->getThemePath()?>/default.css" rel="stylesheet" type="text/css" media="all"/>
<script type="text/javascript" src="<?=$this->getThemePath()?>/js/jquery.nivo.slider.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo $this>getStyleSheet('fonts/fonts.css')?>"/>
</head>
<body>
<div id="wrapper960" class="clearfix">
<div id="header" class="clearfix shadow">
<div id="nav" class="clearfix">
<?php
$a = new Area('Header Nav');
$a->setBlockLimit(1);
$a->display($c);
?>
</div>
</div>
<div class="slider-wrapper">
<div id="slider" class="nivoSlider">
<img src="<?=$this->getThemePath()?>/images/slider3.jpg" alt="" />
<img src="<?=$this->getThemePath()?>/images/slider1.jpg" alt="" />
<img src="<?=$this->getThemePath()?>/images/slider2.jpg" alt="" />
<img src="<?=$this->getThemePath()?>/images/slider0.jpg" alt="" />
<img src="<?=$this->getThemePath()?>/images/slider4.jpg" alt="" />
</div>
</div>
I am fairly new with C5 (making my first site) and have run into a problem I cannot figure out.
I have converted a CSS template to C5 theme and split it into header.php, default.php and footer.php. No problems.
The problem arrises when I try to istall custom fonts. I have followed the procedures here:http://www.concrete5.org/documentation/how-tos/designers/how-to-add...
But when I add the line of code to the header, everything exept the background (all the divs) disappear. I have added the code now, so you can see. The address ishttp://www.anakwaana.com/akatest...
Here is the header.php code
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
?>
<!DOCTYPE html>
<html>
<head>
<?php Loader::element('header_required');?>
<link href="<?=$this->getThemePath()?>/default.css" rel="stylesheet" type="text/css" media="all"/>
<script type="text/javascript" src="<?=$this->getThemePath()?>/js/jquery.nivo.slider.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo $this>getStyleSheet('fonts/fonts.css')?>"/>
</head>
<body>
<div id="wrapper960" class="clearfix">
<div id="header" class="clearfix shadow">
<div id="nav" class="clearfix">
<?php
$a = new Area('Header Nav');
$a->setBlockLimit(1);
$a->display($c);
?>
</div>
</div>
<div class="slider-wrapper">
<div id="slider" class="nivoSlider">
<img src="<?=$this->getThemePath()?>/images/slider3.jpg" alt="" />
<img src="<?=$this->getThemePath()?>/images/slider1.jpg" alt="" />
<img src="<?=$this->getThemePath()?>/images/slider2.jpg" alt="" />
<img src="<?=$this->getThemePath()?>/images/slider0.jpg" alt="" />
<img src="<?=$this->getThemePath()?>/images/slider4.jpg" alt="" />
</div>
</div>
Instead of this
try
(note the $this-> not $this>)
I'll message the how to author to get him to fix it.