Search code examples
javajavascriptliferayliferay-6page-title

Change the title of the theme page in Liferay 6.1


I have created a theme in liferay 6.1. Now my question is how do I change the title of the theme pages. For ex: About us page has title "Aboutus -liferay", I want to change it to "Aboutus".

I have tried using javascript for this like: document.title="aboutus";

But until the page loads it shows the default title(Aboutus-liferay) and then after page load this "aboutus" title appears.

I want the custom title. Any help is highly appreciated.


Solution

  • I just added:

    **<head>
        <title>$the_title</title>
     </head>**
    

    in my portal_normal.vm file and this solved my problem. Now whatever title i add in my html title of the pages in Manage Pages --> pages gets displayed in the title.