Hello Mr.
Congrats for your great theme!
I need your help for 2 things;
1 – I need to put the 2 slides of my slide show in random mode… when i open the site open the slide a first but if i open the site again i want open the slide b first..
2 – In the partners logos i have 13 logos… and i divided for 3 colums (5 + 5 + 3), my client don´t like to see the last 3 logos alone… how can i improve this?
Many Thks
Hey jisby!
Thank you for using Enfold.
1.) We can randomize the groups inside the slider. Please add this in the functions.php file.
// custom script
add_action( 'wp_footer', 'ava_custom_script' );
function ava_custom_script() {
?>
<script type="text/javascript">
(function($) {
function a() {
$(".avia-content-slider-inner").randomize(".slide-entry-wrap");
}
$.fn.randomize = function(childElem) {
return this.each(function() {
var $this = $(this);
var elems = $this.children(childElem);
elems.sort(function() { return (Math.round(Math.random())-0.5); });
$this.remove(childElem);
for(var i=0; i < elems.length; i++)
$this.append(elems[i]);
});
}
a();
})(jQuery);
</script>
<?php
}
2.) Add two more logos or just remove the last 3 logos completely. Unfortunately, the slider will display items by sets, not individually.
Best regards,
Ismael
Hello Ismael,
Thks for your support i have added the code but don´t work…
The slide still in the same order…
