Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-05-19 23:00:15
- milauskas
- New Member
- Registered: 2009-04-20
- Posts: 8
Header image only shows on one page, but not others
Hi,
Still new to Textpattern and I ran into a problem. I have a gif file in the header on my home page which shows up fine. I have the same code on the other 3 pages on my site, but the header image does not show up on these. Did I miss something?
My home page code begins as follows:
<txp:output_form form=“meta” />
<txp:output_form form=“header+nav” />
Here’s the code from the “header+nav” form:
<div id=“header”><img src=“images/jonnHeader.gif” alt=“jonn faircrest actor” class=“header” /></div>
<div id=“nav”>
<txp:cbs_navigation_menu
sections=“default,photos,blog,contact” titles=“Home,Photos,Blog,Contact”
break=“li”
activeclass=“active”
wraptag=“ul”
ids=“first,,,” />
</div>
Why isn’t this image showing up on the other pages?
Thanks for any insight!
Offline
Re: Header image only shows on one page, but not others
Change src=“images/jonnHeader.gif”
to src=“/images/jonnHeader.gif”
.
The former is a relative path, so when on a section, it looks for the image on the wrong place.
The second is an absolute path to the root of your site.
Offline