Hi again,
This time i will share to you all about how to sort the slider of Lensa theme. There are so many people asking me about this thing.
To sort the photograph item on the slider, you have to modify a file named theme-functions.php (FTP > wp-content > themes > lensa > includes).
Find out this code around line 747:
query_posts( array( 'post_type' => 'photograph', 'meta_key' => 'colabs_feature_photograph', 'meta_value'=> 'true', 'posts_per_page' => $slide_number ));
Edit it become (for example):
query_posts( array( 'post_type' => 'photograph', 'meta_key' => 'colabs_feature_photograph', 'meta_value'=> 'true', 'orderby' => 'rand', 'posts_per_page' => $slide_number ));
Those modification will made your slider photograph sorted by a random order. There are a lot of mod you can use for the order. You can check it at this URL (check for order & orderby parameters).
Hello Tandamerah !
Thank you for you great work about Lensa’s customization. I’m having some trouble with the slideshow ; I don’t manage to pause the slideshow when I hover it with my mouse, even if I put “true” or “false” in the Lensa Dashboard. Do you have by any chance an advice for me ?
Best regards,
Alexia
Hi Alexia,
It is a hard question since the pause_hover option only work if you are hovering on the image directly. At the Lensa case, the images are set to be a background, so even if you are hovering your mouse, it will not work.
You will need to restructured the whole theme from scratch
Hello,
The guide above is great for randomising images but how can anyone tell me how to set the images to appear in the order you want them to?
Hi Ben,
I already made a tutorial for it, you can check it at https://tandamerah.wordpress.com/2014/11/25/lensa-set-slider-order/
Hi
When I use the homepage slider in Lensa its pausing the slider at the last slider image and not repeating.How can I enable repeating .Please help
Hi
All I have managed to do that by editing the theme functions file and removing thae pause function LOL:)