-
AuthorPosts
-
September 6, 2019 at 12:56 pm #1134908
is it possible to have on a button which is outside the slider to have the same function as f.e. the avia-slideshow-dots avia-slideshow-controls or on Tab Section the av-section-tab-title
I see the events on those “buttons” – is it possible to give the function to a button which is f.e. in a color-section beneath.September 10, 2019 at 4:52 am #1136323Hey Guenter,
Thank you for the update.
You can hide the default dots or navigation and create another element that will represent those dots. You can then simulate a click event or trigger the default dot when someone clicked on its alias or the custom dot designated to it.
// https://api.jquery.com/trigger/
Or you can adjust the position of the dots with css.
Best regards,
IsmaelSeptember 10, 2019 at 12:29 pm #1136514thanks – that was the right idea – with trigger click
September 11, 2019 at 6:48 pm #1137180Well i did it in a different way now – your second thought i detached these dots and cloned them into the circles
September 13, 2019 at 3:00 am #1137746Hi,
The avia-cirle-logo applies the “active” class attribute on mouseover. Maybe, you can modify that script so that it applies the class attribute on click.
The demo looks nice.
Best regards,
IsmaelSeptember 13, 2019 at 9:10 am #1137833my aim is if the slideshow is set to play automatic the circles have to have the active state too. Like the dots in the slideshow.
That is the problem. To change it from hover to click is surely the next step.
the one with the Kriesi circle is just an example. I’m thinking about using a button row or other elements for this navigation.September 13, 2019 at 12:38 pm #1137979i prepared the slideshow.js for it.
but if you new an easier way ( more independent from having another edited ALB ) it would be niceI still haven’t understood how to transfer a dynamically added class to another element.
I must read myself probably nevertheless more into the matter of the Script programming.September 17, 2019 at 3:44 am #1138982Hi,
If you don’t want to copy the script in the child theme, you can listen for the “avia_slider_navigate_slide”, “avia_slider_first_slide” and the “avia_slider_last_slide” events, then look for the navigation dot (goto-slide) with the “active” class attribute. The event is triggered whenever the _navigate function is executed. You can probably use the href attribute of the active dot to determine the custom dot that is related to it.
<a class="goto-slide active" href="#1">1</a>
Something like:
slider.on('avia_slider_navigate_slide avia_slider_first_slide avia_slider_last_slide', function() { var active = $('.goto-slide.active').attr('href'); var dot = $('custom-dot-' + active).addClass('active'); // custom-dot-#2, custom-dot-#3 // do more });
Best regards,
IsmaelSeptember 21, 2019 at 12:47 pm #1140447I’ll test it this way and then let you know. Thanks for the hint.
-
AuthorPosts
- You must be logged in to reply to this topic.