Articles in this section
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.

  1. Open the Text widget in code-view mode.
  2. Replace the <p> tag with the <div> tag.
  3. Save the changes and refresh the widget.

By changing the parent tag to <div>, the issue with duplicated values should be resolved.

Additional References

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
RM
Written by Reethika Moovendhan
Updated:
Comments (0)
Please  to leave a comment
Access denied
Access denied