Forums

Rotate Header Image (10 posts)

  1. fuzzy_logic
    Member
    Posted 7 years ago #

    Is there a script/plug-in that will allow me to rotate or randomly pick a header image?
    Thanks!

  2. Mark (podz)
    Support Maven
    Posted 7 years ago #

  3. oriecat
    Member
    Posted 7 years ago #

  4. Mark (podz)
    Support Maven
    Posted 7 years ago #

    Beat you ........... just :p

  5. oriecat
    Member
    Posted 7 years ago #

    Yeah, but I listed two! :P

  6. Mark (podz)
    Support Maven
    Posted 7 years ago #

    Okay ... call it quits then ;)

  7. fuzzy_logic
    Member
    Posted 7 years ago #

    I tried to follow the instruction but it doesn't work. Here's my code


    <?php
    function header_graphic() {
    $num=rand(0,8);
    echo $num."masthead.jpg";
    };
    ?>

    <head>
    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

    <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
    <style type="text/css" media="screen">
    #masthead {
    margin: 0 auto;
    border: 1px solid #999;
    background-image: url("< ?php header_graphic(); ?>");
    width: 660px;
    height: 211px;
    }
    @import url( <?php bloginfo('stylesheet_url'); ?> );

    </style>

  8. fuzzy_logic
    Member
    Posted 7 years ago #

    By the way, I'm using the theme Minimal Plus.

  9. blips
    Member
    Posted 7 years ago #

    I'm using a different approach for the headers, it uses a fieldname per post and a header file-name. This is the autor's site;
    http://www.holycow.com/joe/archives/2005/01/25/headimage-wordpress-plugin/
    See it in action on my site; http://usadutch.com/blips
    You have to click on a single post and sometimes it shows a diffeent header-picture and sometimes the standard header.

  10. blips
    Member
    Posted 7 years ago #

    The per post header is not working right, it breaks the RSS feed so I disabled it again.

    BLIPS.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.