+

Search Tips   |   Advanced Search

Update the custom style


After created a theme style, use this procedure to apply a customized look and feel to the theme.

Do not edit the IBM WebSphere Portal 8.0 theme CSS style sheets directly, because these changes might be lost during a fix pack upgrade. Instead, create the CSS can in a new style sheet belonging to your custom theme.

  1. Apply the custom style to a page.

    1. On the page to apply the style, go to edit mode.

    2. Click the Style tab on the site toolbar.

    3. Click the custom style.

    4. Click Save.

  2. Write the new styles.

    1. Open a portal page that has the theme and custom style applied.

    2. Use a tool, like Firebug, to select and inspect the style rules to change.

    3. After determining the styles to override in the theme, copy the overrides to the custom style sheet on WebDAV.

  3. Apply the custom style sheet to the entire page structure.

    1. Figure out the root page for the area on which to apply the custom style. To apply to the entire site, select the Content Root.

    2. Add metadata on the root page with a key of colorPalette and a value pointing to the custom style sheet in relation to the theme directory on WebDAV.

      For example: css/custom/custom.css.

  4. Use Firebug to inspect the CSS file.

    1. Open the Firebug plug-in in a Mozilla Firefox browser.

    2. Click the element selection icon in the Firebug menu bar.

    3. Click the area on the page to change.

    4. Check that the correct area is selected in the HTML tab.

    5. Look at the Style tab to inspect all the CSS file that are applied to the HTML element.

    6. Edit the CSS file in the Style tab until the HTML element looks how you want it to. To edit an attribute click the text.

    7. After you determine that the new value applied has the appearance you want, copy the CSS file that you changed in the Style tab into the custom style sheet.


Parent: Styles
Related:

Get Firebug