• Currently Theme is using Slick (https://kenwheeler.github.io/slick/) for its carousel
    It would be lovely to have ability to edit its options natively through WP Admin: “Front Page Options” => “Edu Axis Slider”.

    Today we are required to modify:

    (inc/hooks/template-blocks.php)
    Theme state:
    $slider_options = array(
    ‘autoplay’ => ‘false’,
    ‘dots’ => ‘true’,
    ‘fade’ => ‘true’,
    );
    What I wanted:
    $slider_options = array(
    ‘autoplay’ => ‘true’,
    ‘autoplaySpeed’ => ‘3000’,
    ‘dots’ => ‘true’,
    ‘fade’ => ‘true’,
    );

    However once theme is updated, I will lose this change, hence a change via Admin would be ideal. Can you please implement it?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter Marcos Soares

    (@slipmp)

    Just found an alternative. By executing $(‘.edu-axis-main-slider’).slick(‘unslick’); first it allows me to call slick() again without errors. It is a workaround, not really ideal, but it will allow me to not lose changes after theme update.

    Code snippet:

    <script type=”text/javascript”>
    jQuery(document).ready(function($) {
    $(‘.edu-axis-main-slider’).slick(‘unslick’);

    $( ‘.edu-axis-main-slider’ ).slick( {
    autoplay: true,
    dots: true,
    fade: true,
    autoplaySpeed: 3000
    });
    });
    </script>

    Thank you!

Viewing 1 replies (of 1 total)

The topic ‘Enhance options on “Edu Axis Slider”’ is closed to new replies.