Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #557347

    Hello,
    The callback functions in LayerSlider doesnt work, is any other way to know, when slider is loaded?
    I want to wrap navigation arrows in to the container div, but with document.ready() no any action for slider (slider loaded after document.ready)

    #557531

    Hey mdxclr!

    I am not sure. You can find the LayerSlider documentation here though, http://www.docs.purethemes.net/sukces/layerslider/documentation/documentation.html.

    Cheers!
    Elliott

    #562545

    Yes, and in documentation we have callback in settings, but it doesnt work in Enfold theme (tried to put any simple console.log or alert and nothing)

    #565788

    Hey!

    Please contact the plugin author as they know their plugin best.

    You can try this on the demo site open console paste it hit enter key and then click the next slider or other options on the slider to vie changes at the bottom of the console. $ sign will not work in wordpress to avoid conflict so please use jQuery.

    jQuery(document).ready(function() {
        jQuery('#layerslider_1_1').layerSlider({
            hoverPrevNext: false,
            cbInit: function(element) {
                jQuery('.c-api');
                console.log('function cbInit() called');
            },
            cbStart: function(data) {
                jQuery('.c-api');
                console.log('function cbStart() called');
            },
            cbStop: function(data) {
                jQuery('.c-api');
                console.log('function cbStop() called');
            },
            cbPause: function(data) {
                jQuery('.c-api');
                console.log('function cbPause() called (pauseOnHover)');
            },
            cbAnimStart: function(data) {
                jQuery('.c-api');
                console.log('function cbAnimStart() called, current layer is: ' + data.curLayerIndex + ', next layer is: ' + data.nextLayerIndex + '');
            },
            cbAnimStop: function(data) {
                jQuery('.c-api');
                console.log('function cbAnimStop() called');
            },
            cbPrev: function(data) {
                jQuery('.c-api');
                console.log('function cbPrev() called');
            },
            cbNext: function(data) {
                jQuery('.c-api');
                console.log('function cbNext() called');
            }
        });
    });

    Regards,
    Vinay

    • This reply was modified 8 years, 10 months ago by Vinay.
    #566415

    This code working, but broke my slider – got 6 nav bubbles non-clickable instead of 2 my slides.
    When I install LayerSlider manually – callbacks working, but with integrated plugin in theme – no.

    Action hooks doesnt work too:
    http://www.hoothemes.com/documentation/layerslider/developers.html#action-hooks

    I didnt change any core code of theme or plugins.

    • This reply was modified 8 years, 10 months ago by mdxclr.
    #566649

    Hey!

    Please make sure you are usign the correct ID’s in the jQuery code to match the ID of the slider on your site if you already tried this pelase provide us admin access to your site in a private message

    Regards,
    Vinay

    #566818

    Slider ID is ok (#layerslider_15). U can check it.
    Just need to init when slider is loaded to make navigation arrows in container.
    Or can review other methods to make it without edition parent theme.

    • This reply was modified 8 years, 10 months ago by mdxclr.
    #567665

    Hey!

    The below code is working fine for me please check it and let us know…

    jQuery(document).ready(function() {
        jQuery('#layerslider_15').layerSlider({
            hoverPrevNext: false,
            cbInit: function(element) {
                jQuery('.c-api');
                console.log('function cbInit() called when Layer Slider is Loaded');
            }      
        });
    });

    Best regards,
    Vinay

    #568297

    I got an error in console like this:
    GET domain/layerslider/skins/v5/skin.css

    #568422

    Hi!

    Please check if the skin.css exist in the location it is looking for… The error simply means that the css styles it is looking for is missing.

    Best regards,
    Vinay

    #568742

    Make correction in code, like this:

    jQuery(document).ready(function() {
        jQuery('#layerslider_15').layerSlider({
            hoverPrevNext: false.,
            skin: 'fullwidth',
            skinsPath: '/wp-content/themes/*mytheme*/config-layerslider/LayerSlider/static/skins/',
            cbInit: function(element) {
                jQuery('.c-api');
                console.log('function cbInit() called when Layer Slider is Loaded');
            }      
        });
    });

    No errors in console, but still loading 6 more bullets and thumbnails + margin my text.

    #569822

    Hi!

    That’s is strange i have never seen it before please give us more time while we work on it and get back to you.

    Cheers!
    Vinay

    #570300

    Hi!

    Unfortunately we did not find any solution for this yet, we might need more time on this issue to research. All tho we are providing you the support for this plugin I’m not sure if the plugin author has a easy fix for this issue.

    Thank you for your patience.

    Cheers!
    Vinay

    #622590

    Fixed in new Enfold version.
    Thank You.

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Event callback in LayerSlider’ is closed to new replies.