Title: Calling Navigation | Custom Navigation
Last modified: August 30, 2016

---

# Calling Navigation | Custom Navigation

 *  [kevlab](https://wordpress.org/support/users/kevlab/)
 * (@kevlab)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/calling-navigation-custom-navigation/)
 * I’m trying to pick apart jquery.flexslider.js to see how it calls the nav buttons.
 * I have another plugin that generates tabs, and I’d like to (even if hard coded)
   tie the tabs to each of my slides.
 * [http://gnds.kevinleberge.com](http://gnds.kevinleberge.com)
 * Basically:
    1. I’ll have a tab for each slide. 2. As the slides change, the tabs
   will change too. 3. If you click on a tab, it will jump to the corresponding 
   slide
 * I know this might be a big ask, but since that’s my goal I’m hoping I can get
   help here.
 * [https://wordpress.org/plugins/genesis-responsive-slider/](https://wordpress.org/plugins/genesis-responsive-slider/)

Viewing 1 replies (of 1 total)

 *  Plugin Support [Nick C](https://wordpress.org/support/users/modernnerd/)
 * (@modernnerd)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/calling-navigation-custom-navigation/#post-6403275)
 * Hi kevlab!
 * Flexslider allows you specify a function that runs every time a new slide is 
   displayed. You’d normally set this up when flexslider is initialised, like this:
 *     ```
       jQuery(".flexslider").flexslider({
       	controlsContainer: "#genesis-responsive-slider"
       	animation: "slide",
       	directionNav: 1,
       	controlNav: 1,
       	animationDuration: 800,
       	slideshowSpeed: 9000,
       	after: function (slider) {
       		console.log( 'Now on slide ' + slider.currentSlide );
       	}
       });
       ```
   
 * You can run any code you like in that ‘after’ function, such as triggering a 
   new tab to become active with each new slide.
 * Ideally you’d want to uninitialise flexslider, then reinitialise it with your
   own custom settings above, including the ‘after’ function.
 * Unfortunately, though, it looks like flexslider doesn’t include a function to
   destroy or uninitialise an existing slider. That means you may have to add your‘
   after’ function to the existing plugin initialisation code by editing the plugin
   source, sadly. If you’d like to try that, you can find the relevant code on line
   157 of `wp-content/plugins/genesis-responsive-slider/genesis-responsive-slider.
   php` in the function named ‘genesis_responsive_slider_flexslider_params()’.
 * You’d need to edit this file each time the plugin updated, or else find a way
   to uninitialise the slider so that you can make the change without editing the
   plugin code.
 * Sorry not to be able to offer a more simple solution, but I hope the pointer 
   proves helpful!

Viewing 1 replies (of 1 total)

The topic ‘Calling Navigation | Custom Navigation’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/genesis-responsive-slider_656565.
   svg)
 * [Genesis Responsive Slider](https://wordpress.org/plugins/genesis-responsive-slider/)
 * [Support Threads](https://wordpress.org/support/plugin/genesis-responsive-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/genesis-responsive-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/genesis-responsive-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/genesis-responsive-slider/reviews/)

## Tags

 * [custom nav](https://wordpress.org/support/topic-tag/custom-nav/)
 * [nav](https://wordpress.org/support/topic-tag/nav/)

 * 1 reply
 * 2 participants
 * Last reply from: [Nick C](https://wordpress.org/support/users/modernnerd/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/calling-navigation-custom-navigation/#post-6403275)
 * Status: not resolved