Help - Search - Members - Calendar
Full Version: Picture In Header On Styles
Movable Type Community Forum > Using Movable Type > Default Stylesheets
cchick
I'm guessing this is a stupid question, but it won't be the first time.

I've chosen a style for my blog - minimalist blue. But I notice that this style, as well as most of the others, shows a picture of the author in the header. Since the style is fairly plain, I'd like to do that, but I don't see how to set it up to show a small picture in the header.

I've looked at the stylesheet and the header template...I suppose I could add it myself to the header template, but since it shows on the style, I'm wondering if there is another way.


Cindy
DonScatt
I don't know if this is the right way to do it, but here's what I did.

I modified the templates to include a module, like this in Main Index:

<div id="banner">
<div id="banner-inner" class="pkg">

<$MTInclude module="Banner">

</div>
</div>

Then, I built a "Banner" module, like this. Basically, I created a table that includes the standard MTBlog stuff in once cell, with a logo (or any picture) in a preceding cell:

<table width="949" height="100" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="19" height="107" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
<td width="100" height="100" valign="top"><img src="/images/logo.jpg" width="100" height="100"></td>
<td width="796"><h1 id="banner-header"><a href="<$MTBlogURL$>" accesskey="1"><$MTBlogName encode_html="1"$></h1>
<h2 id="banner-description"><$MTBlogDescription$></h2>
</td>
</tr>
</table>

You could put the whole thing in the template, but I made it a module so that I could set it up once and then just put the MTInclude statement in the other pages that I wanted to use. You can see it at hd-radio.xzebit.com.

Hope this helps,

Don
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.