WordPress.org

Ready to get started?Download WordPress

Forums

Header Image Slider
[resolved] Order of Images (5 posts)

  1. Harley Davdison
    Member
    Posted 2 years ago #

    I have searched around the support area and suprised no one else has asked this. Useing the Header Image Slider, how do you change the order of the pictures? The only way I can find is to either 1 go rename the pictures so they are in an order, or 2 delete them and upload them one by one in the order I would like to view them. THanks for any help

    http://wordpress.org/extend/plugins/header-image-slider/

  2. shazdeh
    Member
    Plugin Author

    Posted 2 years ago #

    I rewriting the whole thing from the ground up to make it more flexible, and support more sliders. I'll add this feature too.
    Thanks for your suggestion!

  3. sager
    Member
    Posted 2 years ago #

    You can change order of the images by changing those lines (73-76):

    foreach( $slides as $slide ) {
    		$nivo_slides .= "<a href='".$link_urls[$i]."'><img src='{$slide}' alt='bmx' /></a>";
    		$i++;
    	}

    to that:

    foreach( $slides as $slide ) {
    		$tmp67 = "<a href='".$link_urls[$i]."'><img src='{$slide}' alt='bmx' /></a>".$nivo_slides;
    		$nivo_slides = $tmp67;
    		$i++;
    	}

    in function boom_build_nivo_slider() in file:
    wp-content/plugins/header-image-slider/general-template.php

  4. SUM1
    Member
    Posted 1 year ago #

    sager I tried that and it corrupted my site and have me a 502 Bad Gateway error. I was only able to fix it by deleting the header-image-slider plugin folder in my cPanel File Manager and reinstalling it. Is there any other way to change the image order without corrupting a site?

  5. SUM1
    Member
    Posted 1 year ago #

    I also tried removing the $i++; at the end and the website wasn't corrupted, but it had no effect on the header or the header settings page.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.