Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #456806

    Hi Guys:
    I have a portfolio item width an easyslider (content element) and a tab widget (content element).
    I would like to change slide on tab change.
    Is there a link to the aviaSlider documentation or to the tab widget documentation.

    i tried to solve the problem by myself adding a bit of code:

    $(".tab")
                            .off("click.tabbed")
                            .on("click.tabbed",function(e){
                                e.preventDefault();
                                $(".avia-slideshow").data("aviaSlider").go2($(this).index()+1);
                            });

    At this point i have two problems:
    1) if i change the tab while the slider is still animating i miss the change; is there a way to make the slider queue the calls?
    2) if i bind the behavior (or if use a delegate) it isn’t working because of the “return false” in the $.fn.avia_sc_tabs inside the file shortcode.js; is there a way to override this behavior ? i tried to override $.fn.avia_sc_tabs in the child theme but without success.

    Thanks for your support
    Best Regards

    #457099

    Hi!

    1. No, the slider was not made with that type of functionality in mind, it may be modded but that’s something out of our scope.

    2. Would suggest overwriting js/shortcodes.js from the child theme, you can use the following code in functions.php for that:

    function change_scjs() {
       wp_dequeue_script( 'avia-shortcodes' );
       wp_enqueue_script( 'avia-shortcodes-child', get_stylesheet_directory_uri().'/js/shortcodes.js', array('jquery'), 2, true );
    }
    add_action( 'wp_enqueue_scripts', 'change_scjs', 100 );
    

    Best regards,
    Josue

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