Personal tools
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

Header styles

First up, the site header.

Alexander Limi

In this tutorial, Alexander Limi will show you how to take a default Plone site and put a totally different look on it. (Not updated for Plone 3.0 yet)
Page 7 of 15.

The first thing we'll do is to add in the header image.

If we had kept the basic Plone stylesheets (base.css, plublic.css, …), we could have saved the header image as logo.jpg in the mytheme_images directory. It would have showd up automatically. In that case, if you wanted to name it differently, you should have edited base_properties.props to reflect the change.

In this tutorial, the header image is inserted in the layout by customizing the global_logo template and saving the header image itself as header.jpg.

In order to have the same effect than in the example, copy the file global_logo.pt from DIYPloneStyle/skins/diystyle_example_templates/ to the mytheme_templates directory. Also copy the file header.jpg from DIYPloneStyle/skins/diystyle_example_images/ to the mytheme_images directory.

Still doesn't look like much, but we have the logo in place, at least.

 
by Alexander Limi last modified October 23, 2006 - 22:19
Contributors: David Convent, Reinout Van Rees
All content is copyright Plone Foundation and the individual contributors.

Don't see logo.jpg

Posted by Joe Bigler at June 2, 2006 - 04:23

I added the logo.jpg, but it didn't show up automatically. I hadn't made any changes to the MyTheme product since I created it with the generator script. I restarted the server and it still didn't show. I finally got it to show up by copying some CSS to public.css.dtml in the mytheme_styles folder.

#portal-logo { background: url(&dtml-portal_url;/&dtml-logoName;) no-repeat; border: 0; margin: 0.75em 0em 0.75em 1.5em; padding: 0; }

#portal-logo a { display: block; text-decoration: none; overflow: hidden; border: 0; margin: 0; padding: 0; padding-top: [logoName].height">px; height: 0px !important; height /**/: [logoName].height">px; width: [logoName].width">px; cursor: pointer; }

Should I have had to do that?

have to copy over global_logo.pt

Posted by Seth Shikora at June 6, 2006 - 21:02

otherwise the logo won't show up.


For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by