Can I remove the reference to concrete5 from the header of my website?
Permalink
Hi
Is there any way of getting this of the reference to Concrete5 on the site heads that I downloaded from the theme marketplace? The first thing I see is this and not the name of my site.
New to this last month and absolutely looking Concrete5.
Regards
Is there any way of getting this of the reference to Concrete5 on the site heads that I downloaded from the theme marketplace? The first thing I see is this and not the name of my site.
New to this last month and absolutely looking Concrete5.
Regards
What theme are you using? Most themes have a simple way to swap out the default logos and site name and replace it with your own.
Hi mhawke
It is the black accents theme. It is a free theme in the market place. Can't find anywhere I could change it. There is no option to edit it in edit mode and when I click on it it being me back to mammy home page.
It is the black accents theme. It is a free theme in the market place. Can't find anywhere I could change it. There is no option to edit it in edit mode and when I click on it it being me back to mammy home page.
I downloaded that theme and had a look. To simply change the 'Site Name' you need to go to "Dashboard->System and Settings->Site Name' and change it there.
It's more complicated if you want to add a logo image because for this you'll need to modify the underlying theme file called 'header.php' found in '[root]/packages/cannonf700_black_accents/themes/black_accents/elements/header.php' and add a "Global Area" to it by replacing the whole DIV that starts at line 25 (<div class="logo">....</div>) with this code:
To actually add your logo image to this new layout, you then you need to visit "Dashboard->Stacks" and there will be a new 'Global Area' there called 'Logo Image'. Click on the 'Logo Image' stack and add an 'Image' block to it to insert your logo image. Unfortunately in this theme, the logo image needs to be quite small (a max of only 60px high) or else you'll need to do more mucking around with the header.php file.
That should keep you busy for a while!
Mike
It's more complicated if you want to add a logo image because for this you'll need to modify the underlying theme file called 'header.php' found in '[root]/packages/cannonf700_black_accents/themes/black_accents/elements/header.php' and add a "Global Area" to it by replacing the whole DIV that starts at line 25 (<div class="logo">....</div>) with this code:
<div class="logo"> <div style="float:left;width:60px"> <?php $a = new GlobalArea('logo-image'); $a->display(); ?> </div> <a href="<?php echo DIR_REL?>/"> <?php $block = Block::getByName('My_Site_Name'); if( $block && $block->bID ) $block->display(); else echo SITE; ?></a> </div> <div class="clear"> </div>
To actually add your logo image to this new layout, you then you need to visit "Dashboard->Stacks" and there will be a new 'Global Area' there called 'Logo Image'. Click on the 'Logo Image' stack and add an 'Image' block to it to insert your logo image. Unfortunately in this theme, the logo image needs to be quite small (a max of only 60px high) or else you'll need to do more mucking around with the header.php file.
That should keep you busy for a while!
Mike
Hi Mike,
Fantastic. Changed the site name. Will look into the logo part at a later date.
Cheers, Barry
Fantastic. Changed the site name. Will look into the logo part at a later date.
Cheers, Barry
Hi Mike,
I followed your instructions above but the "logo-image" stack isn't appearing in the Stacks section on the Dashboard. The code I am using is below and I entered the code from Line 25 as you suggested. Div class="logo" is appearing twice. Could this be the issue?
Any ideas?
Barry
I followed your instructions above but the "logo-image" stack isn't appearing in the Stacks section on the Dashboard. The code I am using is below and I entered the code from Line 25 as you suggested. Div class="logo" is appearing twice. Could this be the issue?
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd"> <html lang="en"> <head> <!-- Site Header Content //--> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('main.css')?>" /> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('typography.css')?>" /> <?php Loader::element('header_required'); ?> </head> <body> <div id="container"> <div class="logo">
Viewing 15 lines of 36 lines. View entire code block.
Any ideas?
Barry
.
.
It looks fine to me. That header.php should create a stack.
A couple of things...
Are you sure you're editing the correct file? Stick the words "logo-image" inside the div that holds your logo like so:
When you render the page, you should see the word 'logo-image'.
I guess it's also possible that you have your caching turned on. Visit "Dashboard->System and Settings->Cache and Speed Settings" and turn off all the caching and clear the cache as well. Then clear your browser's cache and refresh your pages with CTRL-F5 to make sure you're seeing the newest content.
Having two <div class="logo"> is fine. If it were <div ID="logo"> then that could cause problems because ID's are supposed to be unique.
A couple of things...
Are you sure you're editing the correct file? Stick the words "logo-image" inside the div that holds your logo like so:
<div style="float:left;width:60px"> logo-image <?php $a = new GlobalArea('logo-image'); $a->display(); ?> </div>
When you render the page, you should see the word 'logo-image'.
I guess it's also possible that you have your caching turned on. Visit "Dashboard->System and Settings->Cache and Speed Settings" and turn off all the caching and clear the cache as well. Then clear your browser's cache and refresh your pages with CTRL-F5 to make sure you're seeing the newest content.
Having two <div class="logo"> is fine. If it were <div ID="logo"> then that could cause problems because ID's are supposed to be unique.
Thanks Mike,
The Logo Image stack was created once I cleared the cache. I was able to add a 60 x 60 image to the logo image stack but how can this be reflected on the header of the website? I cannot see anyway of editing the header on the site. Does this need to be done in the root folder also?
If I wanted to experiment with other themes would the code you provided be suitable once it replaces the "logo" div code?
Thanks
Barry
The Logo Image stack was created once I cleared the cache. I was able to add a 60 x 60 image to the logo image stack but how can this be reflected on the header of the website? I cannot see anyway of editing the header on the site. Does this need to be done in the root folder also?
If I wanted to experiment with other themes would the code you provided be suitable once it replaces the "logo" div code?
Thanks
Barry
Hi Mike,
I've figured out how to add it to the header but I am having a slight problem. I input your most recent code and the page went weird on me. It brought the footer up to the top and then inserted the two images I was experimenting with, one of which was too large and the other being the perfect size. I amended the header.php to incorporate the original code you provided and just one image (60x60)and it works perfectly.. in edit mode. When I sign out of the site to view it as a Guest would the site is showing the weird version. I checked to ensure that all my edits were approved and they were.
Also I guess that the Global Area / Logo Image will only work on Black Accents and if I wanted to create a logo image for another theme I would have to call it a different name. Is this correct? (Logo Image <theme name>)
Thanks
Barry
I've figured out how to add it to the header but I am having a slight problem. I input your most recent code and the page went weird on me. It brought the footer up to the top and then inserted the two images I was experimenting with, one of which was too large and the other being the perfect size. I amended the header.php to incorporate the original code you provided and just one image (60x60)and it works perfectly.. in edit mode. When I sign out of the site to view it as a Guest would the site is showing the weird version. I checked to ensure that all my edits were approved and they were.
Also I guess that the Global Area / Logo Image will only work on Black Accents and if I wanted to create a logo image for another theme I would have to call it a different name. Is this correct? (Logo Image <theme name>)
Thanks
Barry
Check for missing closing divs. That's what causes most screwy layout issues. I use a free text editor called Notepad++ that shows me when a div is not matched.
Attach you header.php again and I can have a look.
I had a closer look at your header.php and it seems that you have put this code in twice:
You can take one of them out and replace it with this code if you wish. This will give you an editable area.
When you put the page in edit mode, the Global Area should show up for editing. Yes/No?
Try to think of the actual php files that you are editing as a floor plan. The div's in the php file are the walls of the floor plan. Concrete5 fills the rooms with furniture but the furniture has to stay inside the walls of the floor plan. If you want a 'room' to be somewhere else, you gotta move the walls. Clear as mud?
Crafting a site with Concrete5 is a fine balance of hard-coding some things and using C5's internal functions for other things. After a while, you will learn where it's best to use each method.
Attach you header.php again and I can have a look.
I had a closer look at your header.php and it seems that you have put this code in twice:
You can take one of them out and replace it with this code if you wish. This will give you an editable area.
<?php $a=new Area('header-text'); $a->display($c); ?>
When you put the page in edit mode, the Global Area should show up for editing. Yes/No?
Try to think of the actual php files that you are editing as a floor plan. The div's in the php file are the walls of the floor plan. Concrete5 fills the rooms with furniture but the furniture has to stay inside the walls of the floor plan. If you want a 'room' to be somewhere else, you gotta move the walls. Clear as mud?
Crafting a site with Concrete5 is a fine balance of hard-coding some things and using C5's internal functions for other things. After a while, you will learn where it's best to use each method.