[resolved] Multiple Headers (7 posts)

  1. computerjoe
    Posted 10 years ago #

    How would one go by adding an option to choose from multiple headers for a theme?

  2. RustedWire
    Posted 10 years ago #

    I believe there is a plugin which can change the header picture, by randomly selecting one from a folder...

    Ahhh yes - here it http://www.martinet.nl/wp-site/random-header-plugin
    That will only change the image. Is that all you're after?

  3. lucytartan
    Posted 10 years ago #

    I have a similar question and would be really grateful for any help I can get. I don't understand PHP.

    I am using the 3 column relaxation theme and want to have rotating headers. I tried to follow the instructions suppleid by the theme designer here


    But I did something wrong at the point where the styelsheet has to be changed.

    Then I put everything back how it was and tried the plugin Rustedwire linked to. It's installed & activated but I am getting this message at the top of my site:

    Warning: array_rand(): First argument has to be an array in C:\Domains\sarsaparillablog.net\wwwroot\wp-content\plugins\randomheader Folder\randomheader.php on line 41

    The same message appeared when I switched back to Kubrick.

    What should I do? I have uploaded a collection of alternate header images to the Images folder inside the Relaxation 3 Column folder. Are they in the wrong place for the above plugin to work properly? And also, should the random image .jpgs have any particular kind of filename?

    Again, thankyou in advance for help with this.

  4. computerjoe
    Posted 10 years ago #

    I'm creating a theme, how could I integrate that plug-in into it?

  5. moshu
    Posted 10 years ago #

    You can't really. The most you can: prepare (=code) the theme to be "ready" for this plugin and, eventually, offer the plugin in your download, too.

  6. lucytartan
    Posted 10 years ago #

    I noticed that this thread has been marked resolved, but my problem is not resolved. I still have some ready image headers but I can't get them happening.

    I wonder if someone could advise me in a more general way: is it considered OK to email a theme designer for advice / clarification? Also, are the modifications to the stylesheet the theme asks for a bit of a bad idea?

    Thanks in advance for any help or advice.

  7. lucytartan
    Posted 10 years ago #

    I figured it out. It was one of those things that's so obvious the code writer hasn't even mentioned it ;) there is a line with the site url which i had to change from the designer's site to my own.

Topic Closed

This topic has been closed to new replies.

About this Topic