Change the logo on for the front page only
To change the logo area for the front page only you'll have to put a new conditon to global_logo.pt. This condition will check if the current page is the front page or not.
- From portal_skins/plone_templates, click on global_logo.pt
- Click on the Customize button
- Update the page template with the following code. The second element will be shown on the front page instead of the one above. It does not have to be a link. It can be whatever you want.
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
i18n:domain="plone">
<body>
<!-- THE PORTAL LOGO DEFINITION -->
<h1 id="portal-logo"
metal:define-macro="portal_logo"
tal:define="we_are_home python:(context.aq_parent == portal and isContextDefaultPage)">
<a href="/"
tal:attributes="href navigation_root_url"
tal:define="portal_title portal_properties/title;"
tal:content="string:$portal_title"
tal:condition="not:we_are_home"
accesskey="1">
Plone
</a>
<a href="http://something.else"
tal:condition="we_are_home">
A link to something else. Will show on the front page instead of the default Link (the
one that links to the front page).
NOTE: This is just an example! In the real world avoid to put links or other stuff directly
into the template!
</h1>
</body>
</html>
Note: If you're using Plone 3 or higher, change the tal:define line to:
tal:define="context_state context/@@plone_context_state; we_are_home context_state/is_portal_root"
As you can see we changed very little compared to the default template. You might need to do additional customizations to the CSS of course to make it look good.
Thanks to joelburton on the plone IRC!

