Change the text of the button “Toggle Carousel”


In this tutorial, you’ll see how to change the text “Toggle Carousel” that is displayed when using the layout options “Layout Settings => Map, toggle carousel from top / bottom”.

Edit the file “functions.php” of your theme/child theme and copy/paste the following code in it:

/**
 * Change the text displayed in the button "Toggle Carousel"
 * @since Progress Map v2.8.1 */
 
function cspm_change_toggle_carousel_text(){
	return 'Click to open';
}
add_filter('cspm_toggle_carousel_text', 'cspm_change_toggle_carousel_text');

 


In the same context