
By default, Atahualpa allows you to upload multiple images and rotate through them. I was asked recently whether or not it could rotate in a specific order.
Much to my delight, the answer was easy to code. Atahualpa makes finding things you want to change easy and accessible. All I really did was add 1 short line to the the javascript code (don’t get dizzy, there’s no heavy programming at all. Just copy/paste).
In WordPress you click on the “editor” link in the “Appearances” section. This gives you a listing on the right of all of the files in the Atahualpa theme. The specific file we want to change is “js.php”.
Go ahead and click on that link and open the page within WordPress (or download and change it if you like). Find the code that looks like:

We want to add code right after the variables are created that sorts the pages alpha-numerically:
HeaderImages.sort()
Adding this into full code will look like:

By adding the sort() function, we now allow the ability to make the header rotate according to how we want the images to display. A good example is having images with text leading up to the tag line.
- image 1 – Wouldn’t you like,
- image 2 – To have a Theme
- image 3 – That makes life Wonderful?
- image 4 – Atahualpa is better than unicycling bears!
I like things that allow for creativity, flexibility and improvement. Atahualpa allows that. If I could become an affiliate for Atahualpa, I would, but their theme is free, so there’s not much money involved, just happiness.
Toff Ward
OpenSourceMarketer.com
Join the forum discussion on this post













