I want to limit the number of words in the display of a dynamic text. This is text in a bootstrap view. This works well until you change the search criteria. As soon as the criteria are changed and the corresponding items are displayed, a line of text or code appears on the screen.
Is there any documentation that you are following?
Thank you for contacting us and I'd be happy to assist.
While I can see the issue on your website when the search is performed, I couldn't reproduce this on my test website.
I have the admin access details, but, I'll need your permission to download a clone/snapshot of the website, to investigate this on a different server.
During troubleshooting on your website's clone, I noticed that the custom shortcode that you are using from the other ticket is not compatible with AJAX requests, when the Elementor plugin is being used.
For this particular requirement, you can register a new custom shortcode:
In this example, I've used the field slug "mettre-un-tres-court-descriptif-2-lignes-maximum", but you can replace it with other text or WYSIWYG field slugs too.
I did what you asked, I integrated the code in functions.php, and I integrated the shortcode in the tooset template as mentioned but instead of the text it's the code [word_trim_custom_field words="20" more="...." field="put-a-short-description-2-lines-maximum"] that displays...