Hi Armin, I'm asking me if it would be possible for the intro image to be a random image between different images from in the media folder.
Thank you very much, great work ;)
Random intro image
Hi Armin, I'm asking me if it would be possible for the intro image to be a random image between different images from in the media folder.
Thank you very much, great work ;)
good idea! at the moment it is not possible :/
… was looking for this feature as well. would be great to have this option in the future :crystal_ball:
I would also love this option. Would definitely pay for this feature.
Any news on this topic? I need to display a random line of text (out of 5-7 options). Any input would be much appreciated!
Dear @l_s
At this time, still not possible sorry, apologies for the inconvenience.
This is possible however with the use of Custom JS within "Lay Options- Custom CSS & HTML"
The 7 lines of text would be all loaded, but be invisible "opacity:0".
The Code would choose one of these seven texts at random and give it a class making it visible to the user 'opacity:1'.
Here is some reference to get you in the right direction, I sincerely hope this helps you :)
https://laytheme.com/documentation.html#custom-javascript
This concerns how to implement JS into your Lay Theme site using 'New page events'.
Remember when using code off the internet to change the common '$' to 'jQuery'.
https://www.w3schools.com/jquery/html_addclass.asp
This concerns the 'addClass' function in jQuery
https://stackoverflow.com/questions/3614944/how-to-get-random-element-in-jquery
Getting a Random Class.
Also regarding the 'opacity' function of CSS you may need the help of this:
https://laytheme.com/documentation.html#custom-css-styling
If this all proves to much, seeking the aid of a developer for this task is an option.
Good luck and best wishes,
As always thank you for using Lay Theme.
Have a wonderful day, sincerely
Richard