Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #694762

    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?

    View post on imgur.com

    Many Thks

    #695904

    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

    #696907

    Hello Ismael,
    Thks for your support i have added the code but don´t work…
    The slide still in the same order…

    #697592

    Hi,

    It is working. Please remove browser cache or hard refresh before testing the page. Reload it a few times.

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.