Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2009-05-19 23:26:45

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB