Hi @sergiom87,
As much we understand you want to wrap the contact slider icon text into a paragraph. We have append slider icon text into the p tag you can check by inspecting it in any browser.
Also, we have added font size to 16px like paragraph because by default is 18px if you don’t want to remove the line.
Please add this code to the functions.php child theme.
add_action( 'wpcs_after_slider', function ($slider_id) {
$title = get_the_title($slider_id);
?>
<script>
if (jQuery("div").hasClass("wpcs_tab"))
{
jQuery(".wpcs_tab").css("font-size", "16px"); // if you don't want to resize font then can remove this line
jQuery(".wpcs_tab").text('');
// adding p tag to contact slider icon text
jQuery(".wpcs_tab").append('<p class="wpcs-tab-title"> <?php echo $title ?> </p>');
}
</script>
<?php
});
Please check it and let me know.
Thank you