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

surfsupjoe125
 
Adreco replied on at Permalink Reply
Adreco
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)
surfsupjoe125 replied on at Permalink Reply
surfsupjoe125
Hi Adreco - so busy with the code didn't ebven think of that. Good point. Code looks oK? Thanks for the reply BTW
ThemeGuru replied on at Permalink Reply
ThemeGuru
Do you have a link to the site?
surfsupjoe125 replied on at Permalink Reply
surfsupjoe125
surfsupjoe125 replied on at Permalink Reply
surfsupjoe125
Still workin on it just started trying to get the logo 150x100 in the header and had some problems.
ThemeGuru replied on at Permalink Reply
ThemeGuru
surfsupjoe125 replied on at Permalink Reply
surfsupjoe125
Yes it is in the images folder and is stated in the appropriate .php files
surfsupjoe125 replied on at Permalink Reply
surfsupjoe125
Yes it is in the images folder and stated in the appropriate .php files default,home, and full
ThemeGuru replied on at Permalink Reply
ThemeGuru
Hmm...

It could be a cache error.

Clear your site cache (Sitewide Settings) and your browser cache.
surfsupjoe125 replied on at Permalink Reply
surfsupjoe125
thanks everyone - I'm workin on it now I will ost if I get it
tallacman replied on at Permalink Reply
tallacman
It looks like you're modifying the core files with the image you are pulling here
<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
surfsupjoe125 replied on at Permalink Reply
surfsupjoe125
Thanks the green salad theme is in the root. Isn't this where you would
embed the logo within the header?
cgrauer replied on at Permalink Reply
cgrauer
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!)
jordanlev replied on at Permalink Reply
jordanlev
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.
surfsupjoe125 replied on at Permalink Reply
surfsupjoe125
Thanks