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 8993861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:17:25+00:00 2026-06-15T23:17:25+00:00

Does anyone know how I can skip the first or last slide in my

  • 0

Does anyone know how I can skip the first or last slide in my NivoSlider 3.1 installation?

Background: I add my images to the slideshow dynamically using WordPress custom fields and due to a strange quirk, it won’t display the slideshow unless I have at least 1 image already in there.

Is it possible to tell NivoSlider to ignore the FIRST or LAST slide?

So, my markup could be:

<div id="slider" class="slider nivoSlider">
<img src="1.jpg" /> <!-- Ignore this ALWAYS -->
<img src="wp-img-1.jpg" />
<img src="another-wp-img-2.jpg" />
<img src="yet-another-wp-img-3.jpg" />
</div>

So, for instance here, it would skip Wall-E or Finding Nemo altogether, not even displaying it.

Many thanks for any help with this – totally racking my brains for a few days now 🙂

  • 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-15T23:17:26+00:00Added an answer on June 15, 2026 at 11:17 pm

    Should help you out a bit.

    $(document).ready(function () {
        //set up vars
        var slider = $('#slider');
        var firstImage = $('#slider img:first');
        var lastImage = $('#slider img:last');
    
        //Take them out of the gallery
        firstImage.remove();
        lastImage.remove();
    
        //run photo gallery stuff
    
        //Now add images back in
        slider.prepend(firstImage);
        slider.append(lastImage);
    });
    

    EDIT

        $(window).load(function() {
    
    //set up vars
    var slider = $('#slider');
    var firstImage = $('#slider img:first');
    var lastImage = $('#slider img:last');
    
    //Take them out of the gallery
    firstImage.remove();
    lastImage.remove();
    
        $('.slider').nivoSlider({
            effect: 'slideInLeft', // Specify sets like: 'fold,fade,sliceDown'
            slices: 15, // For slice animations
            boxCols: 8, // For box animations
            boxRows: 4, // For box animations
            animSpeed: 500, // Slide transition speed
            pauseTime: 3000, // How long each slide will show
            startSlide: 1, // Set starting Slide (0 index)    
            controlNav: false, // 1,2,3... navigation
            controlNavThumbs: false, // Use thumbnails for Control Nav
            pauseOnHover: true, // Stop animation while hovering
            manualAdvance: true, // Force manual transitions
            prevText: 'Prev', // Prev directionNav text
            nextText: 'Next', // Next directionNav text
            randomStart: false, // Start on a random slide   
            directionNav:true,
            directionNavHide:false,
            afterLoad: function(){
                //Now add images back in
                slider.prepend(firstImage);
                slider.append(lastImage);
            } // Triggers when slider has loaded
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know how can I get the last digit number from the Ip
Does anyone know I can make min-height work with the latest browsers? I am
Does anyone know how can I cut a string and then assign into an
Does anyone know how can I detect the browser type in css? What I
Does anyone know where can I find recent data on PHP4 vs PHP5 market
Does anyone know how can I catch a mail error (error is displayed while
Does anyone know how can I edit a subitem on a listView? I've tried
I know I can use Request.Browser.IsMobileDevice . But does anyone know how it works,
Does anyone know how we can get previous versions of z3 for linux 64?
Does anyone know why I can't see an HTTP request that results in a

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.