Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Jon Jon
default theme editing
June 11, 2009 12:13 AM
Answer

Jon Jon

Rank: New Member

Posts: 20

Join Date: March 26, 2009

Recent Posts

are there any guides to editing the default theme?

basically all i want to do is change the colors, logo, etc.

thanks
Lari Tuominen
RE: default theme editing
June 11, 2009 12:38 AM
Answer

Lari Tuominen

Rank: Expert

Posts: 283

Join Date: November 7, 2007

Recent Posts

Hi Jon, Instructions on how to create your custom theme can be found for instance from: http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Themes

- Lari
Jon Jon
RE: default theme editing
June 11, 2009 9:36 PM
Answer

Jon Jon

Rank: New Member

Posts: 20

Join Date: March 26, 2009

Recent Posts

i realize that, but i don't want to create my own theme. I want to edit the default liferay theme.
Anonymous
RE: default theme editing
June 16, 2009 7:45 PM
Answer

Anonymous

The reason Lari's suggestion is the best to help you is that if Liferay ever gets updated it will overwrite your changes.

To accomplish what you want is very easy with the SDK.
Create a new theme
Add the custom.css from the classic theme to _diffs/css/custom.css
Add your logo to _diffs/images/
Change the statements in custom.css to reference your colour scheme and logo.

When the theme is built it pulls in any files from classic theme that have not been overridden (ie, custom.css).

You are still making the same changes to css as you would if you edited the files in place, but you are protecting your theme from upgrades or accidents.

Also if you mess up when changing the classic theme in place then you do have a bit of a problem on your hands unless you keep good revision history.

- Karl
Jon Jon
RE: default theme editing
June 16, 2009 9:03 PM
Answer

Jon Jon

Rank: New Member

Posts: 20

Join Date: March 26, 2009

Recent Posts

i see, that makes sense to build it in the sdk. however, i just did a test build. used the create batch to make my theme, and deployed it right after, but all i get is just a white background with extremely basic formatting. how can i force it to use all the settings from LR classic theme?
Anonymous
RE: default theme editing
June 16, 2009 9:07 PM
Answer

Anonymous

Copy over the custom.css file and make sure that you either remove the two inc lines at the beginning of the file, or you also copy over the color_schemes folder to _diffs/css/color_schemes/

I was getting a blank page to start with too as the custom.css file from the classic theme was including the color_scheme files but they were not being copied over by the build process.
Thomas Berg
RE: default theme editing
September 11, 2009 6:46 AM
Answer

Thomas Berg

Rank: Regular Member

Posts: 134

Join Date: September 7, 2009

Recent Posts

I've recently started using Liferay 5.2.3 and found a problem with the plugins sdk.

When creating a new theme, executing the following line in the directory liferay-plugins-sdk-5.2.3/themes/

1ant -Dtheme.name="my_new_theme" -Dthem.display.name="My New Theme" create


the theme is created but the order of the statements in the build-file,
liferay-plugins-sdk-5.2.3/themes/my_new_theme-theme/build.xml, is messed up.

1<?xml version="1.0"?>
2
3<project name="theme" basedir="." default="deploy">
4    <import file="../build-common-theme.xml" />
5
6    <property name="theme.parent" value="_styled" />
7</project>


The order should be:

1<?xml version="1.0"?>
2
3<project name="theme" basedir="." default="deploy">
4    <property name="theme.parent" value="classic" />
5    <import file="../build-common-theme.xml" />
6</project>


In the corrected version, I've also changed the parent from _styled to classic.

Hope this helps