Message Boards

Liferay 7.2 - What would be the correct way to override a portlet CSS?

Fabio Carvalho, modified 2 Years ago.

Liferay 7.2 - What would be the correct way to override a portlet CSS?

Junior Member Posts: 81 Join Date: 6/25/19 Recent Posts

Liferay 7.2 comes with an image editor bug (https://issues.liferay.com/browse/LPS-96197), that was solved in future releases.

It looks like the solution is just to change the portlet CSS: https://github.com/brianchandotcom/liferay-portal/pull/79394/files

I am trying to avoid an overall upgrade of the Liferay version, and was wondering what would be the correct way to override this specific portlet CSS so I can implement the fix?

Thanks in advance!

 

 

thumbnail
Olaf Kock, modified 2 Years ago.

RE: Liferay 7.2 - What would be the correct way to override a portlet CSS?

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts

There's "Look & Feel" for individual portlets. On Content Pages, you can also create your own fragment that introduces random CSS (the CSS can be scoped to the page, it's not automatically limited to your fragment).

And you can also add it to you theme - either by redeploying the theme, or by creating a ThemeContributor.

As other bugfixes might come in as well, potentially security related, I'd recommend to not resist updating for too long though (unless you're on DXP, then there's no reason not to install the latest Fixpack).