Issue
- I would like to base my custom theme on the out of the box classic theme.
Environment
- Liferay DXP 7.1+
Resolution
- Please read Creating Themes
- Then create a folder and open terminal
- Instead of
yo liferay-theme
, use the commandyo liferay-theme:classic --themeVersion=5.0.71
to generate a theme based on the out of the box classic theme. -
Adding
--themeVersion=5.0.71
will be downloading the set version of classic theme.
To check which version you need for your Liferay, check on github on the following link. Make sure selecting your version of Liferay:
https://github.com/liferay/liferay-portal/blob/master/modules/apps/frontend-theme/frontend-theme-classic/package.json - Make your changes in the source
- Build the theme with gulp build
- Deploy to Liferay