WordPress.org

Ready to get started?Download WordPress

Forums

Header random image (5 posts)

  1. koffee
    Member
    Posted 9 years ago #

    Hi,
    I've found a script for changing pictures randomly, and it works fine. But only on index.php :( I put the script link to header.php but in spite of the fact that the script runs on one page, it does not run on any other page, like archives, viewing post etc. Can somebody help, please?

    Link here: http://wp.jirulda.com

  2. oriecat
    Member
    Posted 9 years ago #

    I think it has something to do with your permalink structure, because it is trying to find the header image in the fake folders I think. That's why it doesn't find them and show anything.

    It works ok without using the permalinks, such as
    http://wp.jirulda.com/index.php?m=200507

  3. koffee
    Member
    Posted 9 years ago #

    Thank you, for sure, I turned permalinks off

  4. kaat
    Member
    Posted 9 years ago #

    FYI - there's a "Random Image" theme by Mike Cohen here:

    http://www.mcdevzone.com/random-image/

    It manages to switch images on every page, with permalinks. Perhaps you could learn from this.

  5. Lorelle
    Member
    Posted 9 years ago #

    There is also information on having random images in your header at:

    http://codex.wordpress.org/Designing_Headers

Topic Closed

This topic has been closed to new replies.

About this Topic