Changing the default length / limits of the slider texts

Note :This snippet works only with the Classical style option. More about the theme style option here

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).



When using the slider of posts the filters are, instead:


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.

Related Snippets you may also like

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

  • iamhungrygeek

    Hi Nicholas, does this code still work? I just tried it on the latest Customizir Pro version and it isn’t working

  • Jose

    Hi Theme&Co team,
    First, thanks a lot for your incredible theme!
    Related to slider, Id like to delay the carousel-caption display.
    I have tried with several code (even Js) with no success.
    Pleae give me a help.
    Thanks in advance.

    • Nicolas Post author

      Hi Maya,
      You can play with the margin-left css property of the .carousel-caption selector to do that.

      .carousel-caption {
      margin-left: 11%; /* Original*/
      margin-left: 30%;/* on the right*/

      Hope this helps!

  • Vasilis

    Congratulations for the great work!
    I’m trying to use the above snippet to my function.php of my child theme, but nothing happens to the slider.
    Do I have to change something to the code, in order to make this work?
    I need your help!

    Thanks a lot!

  • David Chen

    Hi Nicolas. thanks so much for your great work on this theme. i got a question that how can make the picture in slider to exchange switch faster ? thanks

    • Nicolas Post author

      Hi David, you can set the duration of the animation in milliseconds when you customize your slider.
      Does it answer your question?

  • Deepak Shenoy

    Hi @Nicolas, How to reduce the size of the rectangular background container that holds the slide title and description.??

Comments are closed.