<b>Background of the issue: </b>
I am trying to remove automatic paragraph and line break tags from HTML widgets in my WordPress theme by using the following code in my theme child functions.php:
. This works as expected until I activate the String Translation Plugin.
<b>Symptoms: </b>
After enabling the String Translation Plugin, the code to remove and br tags does not work, resulting in multiple p and br tags on new line characters in HTML widgets.
<b>Questions: </b>
How can I make the String Translation Plugin respect the code that removes and <br> tags?
Thank you for contacting the support. Meanwhile this ticket is attended by one of my colleagues, may I request you to try this with only WPML, String Translation and a default WordPress theme (like 2021 or 2024)? So we can see if nothing else is causing a conflict.
IMPORTANT: Please take full backup of your website and database beforehand.
It is highly advised to try this on a staging/dev site first, so your live website isn't compromised.
Please let us know your findings and we'll try our best to help you further on the matter.
Regards.
The topic ‘[Closed] Activating String Translation Plugin enables wpautop on html widgets while it’s deactivated on them…’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.