Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-08 21:25:40

Mithrus
New Member
From: Canada
Registered: 2008-02-08
Posts: 5
Website

Adding a Banner into Header

I’ve been using WordPress for the last while, for my other sites, but I just started up a new one and thought I’d give Textpattern a try. I don’t really have much experience with CSS/HTML. I learned how to do pretty much most of the basic CSS stuff I needed in WP, and same with HTML/PHP. But it all seems a litter different in Txp, so doing what I want to do is a litter different now.

Basically, I want to put a banner where the site name and slogan is, but my attempts haven’t yielded any positive results. I’m trying to put this image up (it’s just a test banner, for now):

http://www.irisshot.com/images/header.jpg

Any help is greatly appreciated.

Offline

#2 2008-02-09 00:31:27

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Adding a Banner into Header

In a default TXP install, there is a <div id="header"> containing the site name and slogan. This is found under the Pages subtab, both in the default page and the archive page. In both of those templates, replace the contents of <div id="header"> with your banner. That is, where it now shows:

	<div id="head">
		<p id="site-name"><txp:link_to_home><txp:site_name /></txp:link_to_home></p>
		<p id="site-slogan"><txp:site_slogan /></p>
	</div>

put:

	<div id="head">
		<img src="/images/header.jpg" alt="your website name" />
	</div>

Code is topiary

Offline

#3 2008-02-09 01:23:02

Mithrus
New Member
From: Canada
Registered: 2008-02-08
Posts: 5
Website

Re: Adding a Banner into Header

Ah, I see now. Thanks for the help!

Offline

#4 2008-02-09 02:35:25

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Adding a Banner into Header

I should have added, keep the <txp:link_to_home> tags around the banner image if you want the banner to be a link to the home page.


Code is topiary

Offline

Board footer

Powered by FluxBB