Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7804263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:51:29+00:00 2026-06-02T01:51:29+00:00

I am using Flex slide r for one project. I need to control two

  • 0

I am using Flex slider for one project. I need to control two sliders on one page with same controls.

One part is main slider that will show images, and the second one is text (in this case it will be taken from “the_excerpt” in WP ).

Basically, this is the code I am using to call two slides on one page:

  $(window).load(function() {
    $('#main-slider').flexslider({
      animation: 'slide',
      controlsContainer: '.flex-container'
    });

    $('#secondary-slider').flexslider();
  });

Now, I need to “connect” both of them to same controls, so when I click on arrow, it will slide/fade both of them.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T01:51:30+00:00Added an answer on June 2, 2026 at 1:51 am

    You could accomplish what you’re trying to do by ditching the controlsContainer setting and creating your own navigation that you then link to both sliders. Here’s an idea of how (please note it’s untested)

    Your markup would look something like this. Note the rel attribute on the links – we’ll use them below. Also note that the values start from 0 – this matches the values for the slides (e.g. the first slide is 0, the second is 1 etc).

    <a rel="0" class="slide_thumb" href="#">slide link 1</a>
    <a rel="1" class="slide_thumb" href="#">slide link 2</a>
    <a rel="2" class="slide_thumb" href="#">slide link 3</a>
    <a rel="3" class="slide_thumb" href="#">slide link 3</a>
    
    <div id="main-slider" class="flexslider">
    <ul class="slides">
        <li>
            <img src="image1.jpg" />
        </li>
        <li>
            <img src="image2.jpg" />
        </li>
        <li>
            <img src="image3.jpg" />
        </li>
        <li>
            <img src="image4.jpg" />
        </li>
    </ul>
    </div>
    
    <div id="secondary-slider" class="flexslider">
    <ul class="slides">
        <li>
            <p>Text 1</p>
        </li>
        <li>
            <p>Text 2</p>
        </li>
        <li>
            <p>Text 3</p>
        </li>
        <li>
            <p>Text 4</p>
        </li>
    </ul>
    

    Then you set up the call to flexslider

    <script type="text/javascript" charset="utf-8">
    jQuery(document).ready(function($) {
    
    $('#main-slider').flexslider({
        animation: "slide",
        slideToStart: 0,
        start: function(slider) {
            $('a.slide_thumb').click(function() {
                $('.flexslider').show();
                var slideTo = $(this).attr("rel")//Grab rel value from link;
                var slideToInt = parseInt(slideTo)//Make sure that this value is an integer;
                if (slider.currentSlide != slideToInt) {
                    slider.flexAnimate(slideToInt)//move the slider to the correct slide (Unless the slider is also already showing the slide we want);
                }
            });
        }
    
    });
    
    $('#secondary-slider').flexslider({
        animation: "slide",
        slideToStart: 0,
        start: function(slider) {
            $('a.slide_thumb').click(function() {
                $('.flexslider').show();
                var slideTo = $(this).attr("rel")//Grab rel value from link;
                var slideToInt = parseInt(slideTo)//Make sure that this value is an integer;
                if (slider.currentSlide != slideToInt) {
                    slider.flexAnimate(slideToInt)//move the slider to the correct slide (Unless the slider is also already showing the slide we want);
                }
            });
        }
    
    });
    
    });
    </script>
    

    Basically both sliders are controlled by the same set of navigation links. Think this should get you moving in the right direction but shout if you need anything explained.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using BlazeDS for data-push feature in my Flex application project. From the
Okay, this one is REALLY weird. I'm using .net for my backend and Flex
I'm using Flex 3.5, BlazeDS 3.2.0.3978 and EJB3 for backend. There are two RPC
Using Flex 3, I would like to take an image snapshot such as this:
Using Flex and Bison, I have a grammar specification for a boolean query language,
Using Flex 3.2, I have a object which extends a TitleWindow. In this TitleWindow
I'm using Flex Builder more and more and attempting to create a fairly asset
I'm using Flex and Bison for a parser generator, but having problems with the
I am using Flex's Alchemy library to generate SWC's out of C files. I
I am using Flex with Flash player. I know with AIR i can access

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.