Support » Fixing WordPress » PHP “If” help

  • I would like to specify a graphic that will appear in my sidebar based on which php file is calling it. Problem is, I’m not a coder. I want something essentially like this:
    if thisfile == index.php then pic1.jpg
    else pic2.jpg
    thisfile would need to represent the name of the current php file that contains this code. And, of course, the rest of the syntax would need to be written correctly.
    Thanks in advance to any coders who can help.

Viewing 1 replies (of 1 total)
  • I don’t have the file handy now so i can’t copy and paste, but look into the conditional lines in the index of the latest kubrick release. you’ll find what you’re looking for (i think).

Viewing 1 replies (of 1 total)
  • The topic ‘PHP “If” help’ is closed to new replies.