site logo

Permalink 1 user found helpful
Hi everyone and thanks for your contributions.

I am new to C5 and want to know how to replace the site name text with a site logo.

I have watched this video...
http://www.concrete5.org/help/editing/scrapbook_defaults/...
... and understand this but this does not allow me to add over the main navigation area i.e. where the site name appears.

I have also read other posts about altering the code but these were not clear as to what files are called and where they reside.

As always, any help much appreciated.

appleman
 
Mnkras replied on at Permalink Best Answer Reply
Mnkras
take a look at

http://www.concrete5.org/help/faq/how_do_i_get_rid_of_my_sitename_/... you can insert an image in the content block
appleman replied on at Permalink Reply 1 Attachment
appleman
Hi Mnkras and thanks for your reply.

I have changed back to the default theme to experiment with adding a logo where the site name appears.
I have had success of sorts using the global scrapbook, as the logo now appears in all the pages, however next to the logo is the text 'Logo' or a missing image box (see attached).

Also, depending on the theme used the logo sometimes does not show, but I assume that's because the CSS for that theme does not have it defined?
12345j replied on at Permalink Reply
12345j
hi, there is a solution but it can take some fiddling. open up an ftp browser- if you don't have one use a web based one like netftp. enter your login credentials and navigate to where concrete5 is located. this will be something like public_html and then either right there or in a subfolder called concrete5. once in the concrete5 directory, click on the folder called concrete. (this is to edit the default theme, for others click themes). then click on themes, and default, or whatever theme you want to edit. go to elements, and header.php. look for a block of php like this
<h1 id="logo"><!--
         <a href="<?php echo DIR_REL?>/"><?php 
            $block = Block::getByName('My_Site_Name');  
            if( $block && $block->bID ) $block->display();   
            else echo SITE;
         ?></a><!--
      </h1>
Replace that code with
<?php
    $a = new Area('Site Name');
    $a->display($c);
?>
you can change site name to anything you want it to be. If the first isn't in there, though it is for the default, open up default.php or the page type you want to change. you'll have to do this separately for each page type you want to modify if you have to do this. If you want content and an image use this addon.http://www.concrete5.org/marketplace/addons/content-around-image/...
hope this helps!
frz replied on at Permalink Reply
frz
its a really good idea to NOT edit anything under
/concrete
in your file system...

if you want to change something in there, take a copy of it and move it up a level....sooo
/concrete/themes/default/yadda.php
becomes
/themes/default/yadda.php

concrete5 will know to use the "override" and you will still be able to upgrade later.
appleman replied on at Permalink Reply
appleman
Thanks both of you for your replies.

I will experiment further with this but for now have managed to do what I need using the my_site_name option in the admin scrapbook.

Cheers for now.
PassionForCreative replied on at Permalink Reply
PassionForCreative
I've just done a fresh installation of the new release version of C5 & don't seem to have the Global scrapbook or the My_Site_Name anywhere. Can anyone help me out with this?
Mnkras replied on at Permalink Reply
Mnkras
you need to manually add it
PassionForCreative replied on at Permalink Reply
PassionForCreative
Thanks Mnkras. Where do I add this.
Mnkras replied on at Permalink Reply
Mnkras
in the dashboard got to the scrapbook page, hit add scrapbook, name it "Global Scrapbook"

in the global scrapbook add a content block

insert what you want the content to be, save, hit rename and put in "My_Site_Name"
PassionForCreative replied on at Permalink Reply
PassionForCreative
Thanks so much. Job done.