I have created a flexslider using a wordpress custom post.
I have 6 posts in total and 6 slides that are pulled out from the content of these posts.
I need to change Text for "Next" and "Previous" as the title of the next and previous post in the slide.
Here is the jQuery code I am using currently:
$('#ethosBotSection').flexslider({
animation: "slide",
slideToStart: 0,
useCSS: false,
controlNav: true,
directionNav: false,
slideshow: false,
manualControls: '.ethosNav li',
start: function(slider) {
$('.ethosNav li').click(function() {
$('.flexslider').show();
var slideTo = $(this).attr("rel")
var slideToInt = parseInt(slideTo)
if (slider.currentSlide != slideToInt) {
slider.flexAnimate(slideToInt)
}
});
}
});
Thanks & Regards
If you create the following js function:
You can use it in the start and after events of your bottom (going by the above comments) flexslider initiation:
Example - Please note I removed the start function from your top flexslider initiation
Use prevText and nextText options: