Change Site Name To Image
Permalink Browser Info Environment
How do I change the site name to an image? For example, on the demo site where the text "Clean N Simple" at the right side of the header is I want to be an image. I tried editing the stack Site Name, adding a stack called My Site Name and My_Site_Name and adding the image in all of them and nothing worked.
If someone could help me change that text to an image, that would be great!
Thanks.
If someone could help me change that text to an image, that would be great!
Thanks.
Type: | Discussion |
---|---|
Status: | Resolved |
Tis can be found by locating the 'header.php' file within the themes 'elements' folder and replacing the following;
<div id="header-logo" class="float-right">
<a class="mainlogo" href="<?php echo DIR_REL?>/">
<?php
$block = Block::getByName('My_Site_Name');
if( $block && $block->bID ) $block->display();
else echo SITE;
?>
</a>
</div>
with the below but insuring the images is pointing to your required logo;
<div id="header-logo" class="float-right">
<a class="mainlogo" href="<?php echo DIR_REL?>/">
<img src="<?php echo $this->getThemePath(); ?>/images/demo/cleansimple-logo.png" />
<?php
// $block = Block::getByName('My_Site_Name');
// if( $block && $block->bID ) $block->display();
// else echo SITE;
?>
</a>
</div>
Let me know how you get on :)
Thanks a lot,
Chris Watterston