Legacy Knowledge Base
Published Jul. 2, 2025

Customize widget appearance when using Liferay's sharing URL

Written By

Antonio Ortega

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Accessing to a widget's configuration -> Sharing tab, we can get a code snippet to share that widget in an external page. Once we share it externally, sometimes the appearance of that widget might not be as expected. Why and how to change it?

Environment

  • Liferay Portal and Liferay DXP

Resolution

  • When a widget is rendered within Liferay its appearance is going to be defined by the code in portal_normal.ftl and portlet.ftl of the current theme. We link those templates from unstyled theme as a reference.
  • However, when that same widget is rendered out of Liferay with the code snippet mentioned above its appearance is going to depends on portal_pop_up.ftl template, so we need to be sure is aligned with the other ones in case we want to see same look and feel.
  • Additionally and in order to help with this possible customization we recommend to have a look at the available variables init.ftl template such as theme_display, portlet_display, layout_set or portlet_id among others.
Did this article resolve your issue ?

Legacy Knowledge Base