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.

Type: Discussion
Status: Resolved
sogren
View Replies: View Best Answer
ChrisWatterston replied on at Permalink Best Answer Reply
ChrisWatterston
Hi sogren,

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
sogren replied on at Permalink Reply
sogren
This is exactly what I was looking for.

Thanks!

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.