• Okay- our blog just recently got lost by our host and we are in the process of rebuilding it more or less from scratch (DB was lost, but not most of the WP files). We had a header image rotator working fine before the meltdown and now are trying to remember the configs to get it back up and running.

    Here’s my simple question (which has been hard to figure out in spite of several hours reading support docs): How do I edit the <header.php> file to point it to my rotator?

    My rotator works fine- the script that does the image rotation is working perfectly. I just cannot remember how to point the default header to the rotator script.

    The rotator can be found HERE, and as you can all see it is working just fine.

    To be clear- can anyone just tell me how to edit the header.php and/or header_img.php to point to this script instead of the kubrick image?

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • It has been a while since I have worked with the standard kubrick theme, but generally you can do something like this:

    <img src="dynamic-image.php" />

    (Of course that is a simplified example)

    The only problem you can sometimes run into, is that not all servers/browsers will properly interpret that as an image, because of the extension.

    One method I have used in the past, is to add some custom code to the .htaccess file, for example:

    Redirect /dynamic-image.jpg https://www.yoursite.com/dynamic-image.php

    Then you can make your image link:

    <img src="/dynamic-image.jpg" />

    The browser will see it as a standard image, but it is really just getting the data from the PHP file.

Viewing 1 replies (of 1 total)
  • The topic ‘Easy Question To Be Answered’ is closed to new replies.