Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • WebSphere Portal Family wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search

Categories

Tag Cloud

  • 6.0
  • 6.1
  • 6.1.0.1
  • 6.1.5
  • 7.0
  • 7.0.0.2
  • 8.0
  • actions
  • administrator
  • authoring
  • Banking template
  • best practices
  • blogs
  • builder
  • building a site
  • caching
  • catalog
  • Clickstream Engine
  • clusters
  • ConfigEngine tasks
  • content
  • customizing
  • databases
  • demo
  • deployment
  • deployment scenario
  • developer
  • developing
  • device class
  • elements
  • examples
  • Express
  • feature set
  • fix pack 2
  • Government to Business template
  • info center
  • information center
  • installation
  • installing
  • LDAP
  • Learning
  • libraries
  • LikeMinds Recommendation Engines
  • logging
  • mentors
  • message catalog
  • messages
  • migration
  • mobile
  • mobile devices
  • mobile experience
  • mobile experience 8.0
  • mobile theme
  • mobile webkit
  • MPA
  • multiplatform
  • pages
  • performance
  • personalization
  • planning
  • portal
  • Portal 6.1
  • Portal 8 theme
  • portlets
  • product doc
  • product documentation
  • projects
  • properties
  • Redbooks
  • Redbooks Wiki
  • remember me cookie
  • resources
  • REST
  • Retail Vendor template
  • rules
  • samples
  • search
  • security
  • sifters
  • sites
  • solutions catalog
  • syndication
  • test infrastructure
  • theme
  • theme optimization
  • topologies
  • troubleshooting
  • tutorials on personalization
  • video
  • wcm
  • web content
  • webkit
  • WebSphere Portal
  • WebSphere Portlet Factory
  • wikis
  • workflows
  • worksheet
  • XML configuration interface
  • z/os
  • zos
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > Exceptional Web Experience for WebSphere Portal 7.0.0.2 > Change the theme logo
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Change the theme logo 

expanded Abstract
collapsed Abstract
How to change the logo in the Portal 7.0.0.2 theme.
 
 

 
One of the desired items to change when starting theme customization is the logo.   This is the first step to re-branding the Portal to meet your business requirements.

There are two locations in the theme that include branding such as a logo.  The first location is in the common actions on the banner and the second location is on the theme header next to the top navigation.

Let's first take a look at the branding on the theme banner, which is visible by default in the theme.  The HTML markup for the logo looks like this: 
<span class="wpthemeBranding">

		    <img alt="IBM Logo" src="/wps/themeModules/themes/html/dynamicSpots/icons/blank.gif">

		    <span class="wpthemeAltText">IBM Logo</span>

		</span>
 
 
The image element for this block of code displays a blank image, it is just a placeholder.  The logo is provided to the theme via a CSS style class.  The reason the logo is provided by this CSS class is so it can modified or overridden by packaged styles on the customization shelf and will update as a new style is selected.  There is no modification to the theme template required.
 
The style that defines the logo in the banner is ".wpthemeBanner .wpthemeBranding img": 
 
.wpthemeBanner .wpthemeBranding img {

		    background-image: url("../images/master.png");

		    background-position:0 -654px;

		    width:36px;

		    height:16px;

		    border: 0 none;

		    line-height: 0;

		    vertical-align: middle;

		    display: block;

		}
 
To change the logo define a new path to your image for the "background-image" attribute and modify the height and width.

The second area of the theme that is setup to display branding is in the header next to the top navigation.  By default this branding is not displayed, however, if you apply the "white" style on the customization shelf, you will see the logo in this area displayed.  The HTML markup for this branding looks like this:

<div class="wpthemeLogo wpthemeLeft">

		<span class="wpthemeAltText">IBM WebSphere Portal</span>

		</div>
As you can see there is not a HTML image element to display the logo and it is provided to the theme via a CSS style class just like the first area of branding. There is no modification to the theme template required.
 
The style that defines the logo is ".wpthemeLogo ":

.wpthemeLogo {

			    display: none;

			    background-image: url("../images/master.png");

			    background-position:0 -758px;

			    width:95px;

			    height:18px;

			    margin-top: 5px;

			}

To enable this logo by default, you should remove the "display" attribute from the style class.  To change the logo define a new path to your image for the "background-image" attribute and modify the height and width.

A useful tool to preview CSS changes dynamically inline is Firebug.  Firebug is primarily used as an add-on to the Firefox browser, but there are features available to other browser via their Firebug Lite package.  You can download Firebug here: http://getfirebug.com/
 
Once you install the add-on, the tool that is most helpful for modifying the CSS is the Firebug inspector.  More info can be found here: http://getfirebug.com/html
 


expanded Article information
collapsed Article information
Category:
Exceptional Web Experience for WebSphere Portal 7.0.0.2
Tags:

This Version: Version 2 January 14, 2012 8:11:22 PM by Jonathan J Lidaka  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (2)
collapsed Versions (2)
Version Comparison     
Version Date Changed by               Summary of changes
This version (2) Jan 14, 2012 8:11:22 PM Jonathan J Lidaka  
1 Jan 13, 2012 4:58:26 PM Jonathan J Lidaka  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use