Changing the default length / limits of the slider texts

⚠️ Code snippets might not be compatible with the latest version of your theme. Always use a child theme to customize your theme, and test your code on a staging website before migrating to production.

You can search the user’s forum or ask the user community by opening a new thread in the Customizr theme forum. Before opening a new topic, you might want to follow the troubleshooting steps..

With the following snippet, you can take control of the various slider texts length in the Customizr theme :

  • title (default 80 chars),
  • lead text under the title  (default 250 chars),
  • button text  (default 80 chars).


add_filter( 'czr_slide_title_length', 'my_slider_text_limits' );
add_filter( 'czr_slide_text_length', 'my_slider_text_limits' );
add_filter( 'czr_slide_button_length', 'my_slider_text_limits' );
function my_slider_text_limits() {
    switch ( current_filter() ) {
        case 'czr_slide_title_length':
            return 150;
        case 'czr_slide_text_length':
            return 500;

        case 'czr_slide_button_length':
             return 150;

Where to copy/paste this code? => in your functions.php file. We strongly recommend you create a child theme. Download a start-up child theme here.

Remember: you shouldn’t edit the theme’s functions.php.

13 thoughts on “Changing the default length / limits of the slider texts”

Comments are closed.