Replacing Header with Logo Image

Permalink
Hello! I'm very new to website design and have no experience with code. I'm currently working on a website using the "Boldly" theme and am trying to put a logo into the header. I have found the coding for it and was going to replace it with the altered code from this thread:http://www.concrete5.org/community/forums/usage/how-do-i-replace-th... However, my theme has instructions for single and multi lingual sites that is confusing me. I am unsure what part of the original coding to replace.

The original code is

<div id="header">
<div id="logo">
<h1>
<?php
if ($logoSuffix) {
// Multilingual - use a global logo area per language
$a = new GlobalArea("Logo$logoSuffix");
$a->display($c);

} else {
// Single language - fallback to original code
?>
<a href="<?php echo DIR_REL?>/">
<?php $block=Block::getByName('My_Site_Name');
if( $block && $block->bID ) $block->display();
else echo SITE;
?>
</a>
<?php
}
?>
</h1>
</div>
<div id="mainMenu" class="ddsmoothmenu">
<?php
if ($logoSuffix == '_home') {
// Homepage of a multilingual site
$a = new Area('HomeMenu');
$a->display($c);

Thanks for any help!
mnemosyne222

 
blueatlas replied on at Permalink Reply
blueatlas
The theme has a global content area defined for the logo. Be sure you add a block to this area (likely choice is an image block). Then, define a logo suffix. For single language sites, the suffix is null (see line 38, version 2.3). Not sure why, but if it is left null ('') the logo won't display on single-language sites.
hutman replied on at Permalink Reply
hutman
It looks like if you have a multilingual site you will need to add a block to the Global Area for your site using the LogoSuffix.

If you have a Single Language site: go into the Dashboard->Stacks and add an Image block to your Logo GlobalArea, when your block has been created click on the block and go to Custom Templates in there you should be able to enter a Block Name, the block name needs to be My_Site_Name. This should pull the Image Logo in to the Theme.

If neither of these works replace this code for multilingual:
$a = new GlobalArea("Logo$logoSuffix");
$a->display($c);

And this code for single language:
<?php $block=Block::getByName('My_Site_Name');
if( $block && $block->bID ) $block->display(); 
else echo SITE;
?>
pdcouto replied on at Permalink Reply
pdcouto
This is one thing that allways put me angry on C5. Why do I need to dig code do add a logo?!

It's

a

single

image.

Site wide. With a link.

Just changed the Site Name global stack, added an Image block. Nothing happens. And there I go again, wasting hours I could use adding content or changing theme colors, just finding out how to add a simple logo sitewide. A really - should be - basic stuff.

This happens everytime single I use Concrete 5, every 6 months or so. It's such a difficult taks and one you so seldom do that I allways tend to forget: "Oh nice, another chance to use C5, I just love this thing... 5 minutes later: "WTF how do I add a simple image logo on this ****, there I go again, has something to do with code!"

Why there isn't a field somewhere, an option next to site name to choose an image file, I really don't know.
MrKDilkington replied on at Permalink Reply
MrKDilkington
@pdcouto

This problem was dealing with a specific theme called "Boldly".

Are you having an issue with this theme?
pdcouto replied on at Permalink Reply
pdcouto
This is one thing that allways put me angry on C5. Why do I need to dig code do add a logo?!

It's

a

single

image.

Site wide. With a link.

Just changed the Site Name global stack, added an Image block. Nothing happens. And there I go again, wasting hours I could use adding content or changing theme colors, just finding out how to add a simple logo sitewide. A really - should be - basic stuff.

This happens everytime single I use Concrete 5, every 6 months or so. It's such a difficult taks and one you so seldom do that I allways tend to forget: "Oh nice, another chance to use C5, I just love this thing... 5 minutes later: "WTF how do I add a simple image logo on this ****, there I go again, has something to do with code!"

Why there isn't a field somewhere, an option next to site name to choose an image file, I really don't know.