How to customize a default label

How to customize a default label

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
  1. [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 :
  1. apply_filters('si/label', 'customLabelMapping');
  2. function customLabelMapping($label) {
  3.     $labelMap = [
  4.         'View detail' => 'Details',
  5.         'Voir les détails' => 'Détails',

  6.         // Add more label mappings here as needed
  7.     ];

  8.     if(isset($labelMap[$label])){
  9.         return $labelMap[$label];
  10.     }
  11.     return $label;
  12. }
    • Related Articles

    • How to customize list display to look like Aliquando 3

      What you need moderate to advanced CSS knowledge access to server-side files or somewhere to add custom styles to your site First step: Prepare the list We will add 3 CSS classes to the list's key objects, move some datas around and clean some ...
    • How to customize detail page layout

      Source Immo Detail Page Customization Shortcodes vs Template Overrides Overview Source Immo single detail pages are built from modular template parts located inside: /wp-content/plugins/source-immo/views/single/*_layouts/subs/ Each file inside a ...
    • Procedure for activating the transfer of real estate data from REALTOR.ca's DDF service

      To allow Source.Immo, managed by ID-3 Technologies Inc., to receive your Canadian real estate data from the CREA via its Realtor.ca website and its SDD, you must enable data feed transfer by following these steps: Go to the following website: ...
    • Source Immo Templating System

      Source Immo Templating System Overview Source Immo renders its front-end output using PHP view files located inside the plugin directory: /wp-content/plugins/source-immo/views/ Developers can override any of these view files by replicating the exact ...