Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
Re: Adding a Banner into Header
Ah, I see now. Thanks for the help!
Offline
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
Pages: 1