WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to fix Nivo Slider in html version of wordpress creat a new blank control (1 post)

  1. rdgupta
    Member
    Posted 1 year ago #

    Go to file 
    
    Change in file jquery.nivo.slider.js
    Search word  //Add Control nav
    changes made in these two line
    
     for(var i = 0; i < kids.length; i++)
     //Add  i=1; instead of i=0;
     for(var i = 1; i < kids.length; i++)
    
    Also in last line
    else {
                        nivoControl.append('<a class="nivo-control" rel="'+ i+'">'+ (i + 1) +'</a>');
    
    //Add  i1; instead of i-1;
    else {
                        nivoControl.append('<a class="nivo-control" rel="'+ (i-1)+'">'+ (i + 1) +'</a>');
    
    //Add Control nav
            if(settings.controlNav){
                var nivoControl = $('<div class="nivo-controlNav"></div>');
                slider.append(nivoControl);
                for(var i = 1; i < kids.length; i++)
    			 //Add  i=1; instead of i=0;
    			{
                    if(settings.controlNavThumbs){
                        var child = kids.eq(i);
                        if(!child.is('img')){
                            child = child.find('img:first');
                        }
                        if (settings.controlNavThumbsFromRel) {
                            nivoControl.append('<a class="nivo-control" rel="'+ i +'"><img src="'+ child.attr('rel') + '" alt="" /></a>');
                        } else {
                            nivoControl.append('<a class="nivo-control" rel="'+ i +'"><img src="'+ child.attr('src').replace(settings.controlNavThumbsSearch, settings.controlNavThumbsReplace) +'" alt="" /></a>');
                        }
                    } else {
                        nivoControl.append('<a class="nivo-control" rel="'+ (i-1)+'">'+ (i + 1) +'</a>');
    					//Add  i1; instead of i-1;
                    }

Topic Closed

This topic has been closed to new replies.

About this Topic