Category / Section
How to Resolving Duplicated Values in Text Widget with Label Parameter
Published:
When using the label parameter in a text widget, you may encounter an issue where values are duplicated after a few refreshes. This issue is caused by the default rendering of the Text widget with the <p>
tag, which cannot contain block-level elements such as <div>
and <p>
as child elements.
Solution
To resolve this issue, change the Text widget’s parent tag to the <div>
tag using the code-view mode. This will prevent the duplication of values after refreshing.
- Open the Text widget in code-view mode.
- Replace the
<p>
tag with the<div>
tag. - Save the changes and refresh the widget.
By changing the parent tag to <div>
, the issue with duplicated values should be resolved.