WordPress.org

Forums

WP Vegas
[resolved] Slider Navigation (5 posts)

  1. llovelett
    Member
    Posted 1 year ago #

    Is there an option to show a navigation on the slider? I have the arrows showing, but it would be helpful if there was a way to have a navigation also so users can easily jump from the current slide to a specific slide.

    If this is not an option in this plugin, is there an easy way to get a slide-id in the HTML markup so that I can create my own navigation? Currently I see that the image tag only has a class of "vegas-background" but no unique ID for each slide.

    I appreciate any help you can give.

    Thank you,
    Lindsey

    https://wordpress.org/plugins/vegas-fullscreen-background-slider/

  2. jamesdbruner
    Member
    Plugin Author

    Posted 1 year ago #

    There is not an option for this.

    To do this you would have to manually setup thumbnails and then you could use jQuery to do this. Something like this might work

    HTML:

    <div id="thumbnail-wrapper">
    <div id="thumbnail-1"><img src="thumbnail1.png" /></div>
    <div id="thumbnail-2"><img src="thumbnail2.png" /></div>
    <div id="thumbnail-3"><img src="thumbnail3.png" /></div>
    <div id="thumbnail-4"><img src="thumbnail4.png" /></div>
    </div>

    Javascript:

    jQuery( "#thumbnail-4" ).click(function() {
      jQuery.vegas('jump', 3); // Go to 4th background
    }

    You'd have to repeat that javascript, one for each thumbnail. I'll be honest, I'm not going to guarantee that will work since I haven't tried it but it's worth a shot and should give an idea to springboard of off.

    Another good resource for more information: http://vegas.jaysalvat.com/documentation/slideshow/

  3. llovelett
    Member
    Posted 1 year ago #

    Thanks very much. That resource helped me out a lot and I achieved what my client needed.

  4. llovelett
    Member
    Posted 1 year ago #

    Marking the topic as resolved. Thanks again for the help!

  5. jamesdbruner
    Member
    Plugin Author

    Posted 1 year ago #

    You're very welcome! If it's not too much to ask, would you please rate the plugin? :)

    Have a good one!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.