Search code examples
cssliferayportletzkliferay-theme

How to make different theme for some portlets


I am new to Liferay and I have the following problem. I need to create portal theme - this is ok, no problem. This will style my portal and default portlets. But in some of my own portlets I use ZKOSS pages, which reqires completely different styling. My question is, how to do it that Liferay theme classes will not influence my ZKOSS pages? There are some general styles in Liferay theme like for input etc but I dont want those rules to be applied inside my ZKOSS portlets. Hope I explained myself clearly. Any suggestions?


Solution

  • You can set the <css-class-wrapper>My_Portlet</css-class-wrapper> in liferay-portlet.xml

    for details see: http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+UI+Guidelines