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

  • SEARCH
  • Home
  • 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 781901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:18:11+00:00 2026-05-14T20:18:11+00:00

I have a page with multiple instances of anythingSlider on it and I’m using

  • 0

I have a page with multiple instances of anythingSlider on it and I’m using PHP to dynamically load pages that swap out the content in them.

Reference: http://ceedcreative.com/CEED_2.0/

I would like to edit the anythingSlider to disable the previous / next buttons if the UL it’s displaying only has one LI within it.

In other words, no buttons, just a clean div that’s the same heigh and width (no scrolling) if there’s only one image.

  • 1 1 Answer
  • 5 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-05-14T20:18:12+00:00Added an answer on May 14, 2026 at 8:18 pm

    Try this

    $('.anythingSlider:not("#topSlider")').each(function(i, slider) {
        // If any slider has less than 2 let members
        if ( $("ul li", slider).length < 2 ) {
            // don't apply the slider functionality
            return;
        }
    
        $(slider).anythingSlider({
            easing: "easeInOutExpo",
            autoPlay: false,
            delay: 3000,
            startStopped: false,
            animationTime: 600,
            hashTags: false,
            buildNextPrevButtons: true,
            buildNavigation: false
        });
    });
    

    If, for some reason, that doesn’t work, this snippet will inspect the list length of every anythingSlider and hide the arrow buttons for any list that is only 1 in length (after excluding the front and back clones).

    $(".anythingSlider").each(function(i, slider) {
        if ( $("ul li", slider).not(".cloned").length == 1 ) {
            $(".arrow", slider).hide();
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page with multiple instances that contain of the following code: <div
I am building a page that will have multiple instances of a tag such
I have multiple instances of <div class=picOuterDiv> <a href=examplepage.php?var=1 class=iframe > page one </a>
I have a large PHP loop that I'm re-using in multiple spots on multiple
I have a PHP page with multiple mysql_query instances. Almost every one uses a
I have a page with multiple forms that I submit via Ajax POSTs serially.
I have a page with multiple YouTube embedded players that I need to listen
I have a form JSP web page, this form contains multiple instances of the
I'm using the MCustomScrollBar , but have multiple instances of the scrollbar on the
I have multiple instances of flowplayer on a page, is there a way to

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.