Customizr Slider : Randomize your slides

Note : This snippet applies to Customizr version 3.1.x and below. It may not work with version 3.2+. Use with caution on 3.2+ and check the availability and type of the hooks in the Customizr hooks API.

Here is a useful snippet for those who need to display their slides in a random order.

The random display is handled in javascript but I might come with an even simplier solution with a WordPress hook in a future release of the theme.



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

Everything you need to know about child theme with Customizr here.

12 thoughts on “Customizr Slider : Randomize your slides

  • Reply
    Matt Ford

    Would love to have an easier solution to making the images random, looking forward to an update, thank you. :)

  • Reply

    Bonjour Nicolas,
    Est-il possible de changer le mode d’apparition des images? Est-il possible de les faire apparaître simplement par transparence les unes après les autres sans avoir cet effet arrivées par la droite? Je suppose qu’il faut réécrire un script?

    Bravo pour votre travail sur Customizr. Je le comprends petit à petit.

    Bien à vous!

  • Reply
    Al Gibson

    Oh dear oh dear, I just pasted the randomise slider code in my functions.php and my whole site crashed. : (
    Tried to restore from backup but that’s not working either. Oh what have I done…

    • Reply
      Al Gibson

      Hello AL,

      Sorry for the inconvenience this has caused to you. I have accessed the website: and found that the issue which you are experiencing is related to the theme ‘customizr’. Therefore, please reinstall the theme ‘customizr’ or contact the theme ‘customizr’ vendor or the support team of the theme ‘customizr’ to fix this issue.

      Currently. I have set the default theme ‘twentytwelve’. Now, the website: is working fine without any issues. If the issue persists, please let us know.

      If you have any further questions, please update the Support Console.


      Shreyank N
      Technical Specialist

Leave a Comment

Your email address will not be published. Required fields are marked *

Please check the following point before adding your comment

  1. - Did you check that you have the latest version the theme installed ?
  2. - Did you read the documentation ?
  3. - If you think it could be useful, please check your system informations : Navigate to Appearance > About Customizr and go to the bottom of the page.
  4. - Did you check if your issue was already resolved ? Before posting a new topic, you'll want to make a quick research with our Google powered search tool below.

You may also use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">