ColorlibHQ / illdy

Illdy is a free one page WordPress business theme with a minimal design
GNU General Public License v3.0
44 stars 38 forks source link

Sugestion: Random slides order in jumbotron #288

Closed GunaAlexander closed 3 years ago

GunaAlexander commented 5 years ago

Hi,

I did a small hack in jumbotron code in order to change the order of slides. So, if you set slider autoplay and slider navigation to off, everytime you load the frontpage, background image will random change. Perhaps it could be a good settings option in jumbotron section .

I just put the following code in front-page-header-slider.php. it will need to be enclosed in a "if" statement according to option set in jumbotron section config.

    srand((float)microtime()*1000000);
    shuffle ($slides);
mahendrapratap4022 commented 3 years ago

Hi @GunaAlexander we have added this enhancement to https://github.com/ColorlibHQ/illdy/pull/331 Thank you for the suggestion.