Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Liferay 7.2 - What would be the correct way to override a portlet CSS?
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!
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).
Powered by Liferay™