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

    Hi there

    I would like to limit the autorotation of a series of content sliders to one loop only. I found 2014 instructions at … https://kriesi.at/support/topic/content-slider-loop/ … The code mentioned has moved to slideshow.js and been amended in recent versions of Enfold (am using 4.7.4). Can you tell me how to proceed now?

    I was also wondering if you had come across any method that would enable a fullscreen slideshow to pull images at random from an array?

    Many thanks

    Jane Joyce

    #1224808

    Hey JaneJoyce,

    Thank you for the inquiry.

    You have to create a new shortcode path in the child theme folder and override the script there.

    // https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb

    This function in the contentslider.php file loads the scripts and stylesheets, so it has to be adjusted.

    function extra_assets()
    		{
    			//load css
    			wp_enqueue_style( 'avia-module-slideshow', AviaBuilder::$path['pluginUrlRoot'] . 'avia-shortcodes/slideshow/slideshow.css', array( 'avia-layout' ), false );
    			wp_enqueue_style( 'avia-module-postslider', AviaBuilder::$path['pluginUrlRoot'] . 'avia-shortcodes/postslider/postslider.css', array( 'avia-layout' ), false );
    			wp_enqueue_style( 'avia-module-slideshow-contentpartner', AviaBuilder::$path['pluginUrlRoot'] . 'avia-shortcodes/contentslider/contentslider.css', array( 'avia-module-slideshow' ), false );
    
    				//load js
    			wp_enqueue_script( 'avia-module-slideshow', AviaBuilder::$path['pluginUrlRoot'] . 'avia-shortcodes/slideshow/slideshow.js', array( 'avia-shortcodes' ), false, true );
    
    		}
    

    Make sure that the path in the wp_enqueue_script function points to the script with the modification.

    wp_enqueue_script( 'avia-module-slideshow', AviaBuilder::$path['pluginUrlRoot'] . 'avia-shortcodes/slideshow/slideshow.js', array( 'avia-shortcodes' ), false, true );
    

    Best regards,
    Ismael

    #1225164

    Many thanks Ismael, I appreciate your help. Will implement and see how we go.
    You can close the ticket.

    Jane

    #1225285

    Hi,

    You’re welcome! We’ll close the thread now, but please don’t hesitate to open another if you need anything else.

    Have a nice day.

    Best regards,
    Ismael

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