Updating 7.0 Theme Templates to 7.2

Liferay DXP 7.0 theme templates and the new DXP version theme templates are essentially the same. Here are the main changes:

Key reasons for using FreeMarker templates and removing Velocity templates are these:

If you haven’t converted your Velocity theme templates to FreeMarker, you must convert your Velocity theme templates to FreeMarker now.

The gulp upgrade command reports the required theme template changes in the log. For example, here is the gulp upgrade log for the Westeros Bank theme:

----------------------------------------------------------------
 Liferay Upgrade (7.0 to 7.1)
----------------------------------------------------------------

Renamed aui.scss to clay.scss
File: footer.ftl
    Warning: .container-fluid-1280 has been deprecated. Please use 
    .container-fluid.container-fluid-max-xl instead.
File: portal_normal.ftl
    Warning: .navbar-header has been removed. This container should be 
    removedĀ in most cases. Please, use your own container if necessary.

The log warns about removed and deprecated code and suggests replacements when applicable. For reference, the main changes between Liferay DXP 7.0 themes and the new DXP version themes appear below:

In this section you’ll learn how to update various theme templates to the new DXP version.

Let’s Go