Change caption length for image/image carousel
I’m looking for a way to change the number of characters displayed for caption in frontend page.
for example i have this caption text : "WordPress is a free and open-source content management system written in PHP"
The text caption displayed in the image carousel : "WordPress is a free and open-source content ma…"
As you can see in this picture :
Is it a snippets to add in function.php to show all characters of the caption and remove "…" ?
Also is it a way to put a limit of characters displayed for the caption? for example 80 characters.