Sometimes you need to change the default Label used on a button.
In some situations like for the listing slider, you can specify it in the shortcode like this
- [si_list_slider type="hero" limit="5" detail_label="Details" show_navigation="true" auto="true" height="500px"]
When not available in the shortcode, you will need to use the si/label filter and add the following code in your theme's function.php file :
- apply_filters('si/label', 'customLabelMapping');
- function customLabelMapping($label) {
- $labelMap = [
- 'View detail' => 'Details',
- 'Voir les détails' => 'Détails',
- // Add more label mappings here as needed
- ];
- if(isset($labelMap[$label])){
- return $labelMap[$label];
- }
- return $label;
- }