#1. First, add this code to the Code Injection – Footer
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script> <script> $(document).ready(function(){ $(".image-slide-title").each(function(){ $(this).html($(this).text()); }); }); </script>
#2. Use this code to Custom CSS box
/* gallery block title */ .image-slide-title { text-overflow: initial !important; white-space: initial !important; overflow: initial !important; }
#3. Use this format in the Title text
- Mountain<br/>Trees in the world
#4. Result