Creating Themes
Creating themes are the main part of the developing in
new and attractive portal. The following are the steps to create custom theme.
- Create new liferay
project by selecting from FileàLiferay Projectàselect
“Theme” plugin.
Click on Finish.
- It will add the following directory structure.
- Now deploy the theme to get directory structure
of the theme.
- After successfully registering theme ,refresh the
theme in package explorer. Now you got directory structure of the theme
like the following.
- Now open build.xml.There
is default property value=”_styled”.Change
it to value=”classic”
- Now copy \docroot\css\custom.css to \docroot\_diffs\css\custom.css.
- Check weather color_schems folder is available or not. If it is not
available deploy once again to get.
- Now open to
\docroot\_diffs\css\custom.css
- Now change properties as per your requirement. In
this example we change background
property of body and color property of anchor tag as follows.
- Now save the file and deploy the theme.
-
Now your theme is ready to apply .
Note: You can change other properties also as per your requirement.
No comments:
Post a Comment