Green Salad
Permalink
Trying to put a logo in the header. The code is below. I keep getting just the red Xlogo. But the logo doesn't appear. Checked the path and it is correct. Anyone have any ideas?
Thanks
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$this->inc('elements/header.php'); ?>
<div id="page">
<div id="headerSpacer"></div>
<div id="header">
<span id="logo"><!--
--><a href="<?php echo DIR_REL?>/"><img src="<?php echo $this->getThemePath()?>/images/bagleytrans.png"
alt="logo" /></a></span>
</a><!--
--></h1>
<?php
Thanks
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$this->inc('elements/header.php'); ?>
<div id="page">
<div id="headerSpacer"></div>
<div id="header">
<span id="logo"><!--
--><a href="<?php echo DIR_REL?>/"><img src="<?php echo $this->getThemePath()?>/images/bagleytrans.png"
alt="logo" /></a></span>
</a><!--
--></h1>
<?php
Could the image be to large? Did you size your new logo to the space allotted? (No idea if this is the case but easy to check)
Hi Adreco - so busy with the code didn't ebven think of that. Good point. Code looks oK? Thanks for the reply BTW
Do you have a link to the site?
Sure I dohttp://www.wingatebrasswipes.com. Thanks
Still workin on it just started trying to get the logo 150x100 in the header and had some problems.
Hmm... Are you sure the image exists?
http://www.wingatebrasswipes.com/concrete/themes/greensalad/images/...
http://www.wingatebrasswipes.com/concrete/themes/greensalad/images/...
Yes it is in the images folder and is stated in the appropriate .php files
Yes it is in the images folder and stated in the appropriate .php files default,home, and full
Hmm...
It could be a cache error.
Clear your site cache (Sitewide Settings) and your browser cache.
It could be a cache error.
Clear your site cache (Sitewide Settings) and your browser cache.
thanks everyone - I'm workin on it now I will ost if I get it
It looks like you're modifying the core files with the image you are pulling here
You should copy the greensalad theme to your root::themes folder, lest an upgrade delete your theme.
Steve
<img src="/concrete/themes/greensalad/images/bagley150x100.png" alt="logo" />
You should copy the greensalad theme to your root::themes folder, lest an upgrade delete your theme.
Steve
Thanks the green salad theme is in the root. Isn't this where you would
embed the logo within the header?
embed the logo within the header?
This is the (wrong) URL for the logo that results on your page:
http://www.wingatebrasswipes.com/concrete/themes/greensaladwingateb...
1. this is not the filename you posted (bagleytrans.png)!?!
2. it seems that getThemePath() returns "/concrete/themes/greensaladwingatebrasswipes/concrete/themes/greensalad" - that is *very* strange!!
3. custom themes should never be placed under "/concrete/themes/..." but only under "/themes/...". (Just do not edit anything under "/concrete/.."!). And you should not use the greensalad name!
To help us helping you please could you answer the following:
- What are the exact local paths of your c5 root, of your theme and of the logo file?
- Could you post the URL for the logo so that the logo (just the logo) shows in the browser?
- could you copy your source code in the post and wrap it with the code-tags? (see at the bottom of the message editor!)
http://www.wingatebrasswipes.com/concrete/themes/greensaladwingateb...
1. this is not the filename you posted (bagleytrans.png)!?!
2. it seems that getThemePath() returns "/concrete/themes/greensaladwingatebrasswipes/concrete/themes/greensalad" - that is *very* strange!!
3. custom themes should never be placed under "/concrete/themes/..." but only under "/themes/...". (Just do not edit anything under "/concrete/.."!). And you should not use the greensalad name!
To help us helping you please could you answer the following:
- What are the exact local paths of your c5 root, of your theme and of the logo file?
- Could you post the URL for the logo so that the logo (just the logo) shows in the browser?
- could you copy your source code in the post and wrap it with the code-tags? (see at the bottom of the message editor!)
I don't think this would have anything to do with your image issue, but you have a "</h1>" in your code that shouldn't be there (there's no corresponding <h1> opening tag before it).This probably doesn't affect anything, but you should remove it just to be sure.
Thanks