I've tried to cobble together some code that will generate a slightly different image depending on which part of the site you're in. Unfortunately, the code tanks the entire site, so I imagine there's some basic syntax error that I've overlooked. I really don't understand even the basics of php, so if you could tell me how to fix this I'd be very grateful:
[Code moderated as per the Forum Rules. Please use the pastebin]
Ok, sorry for that. Here's a link to the code in the pastebin:
http://wordpress.pastebin.com/KsaGrNRS
Thanks, very much esme. As it happens, the code didn't work, but I spotted and corrected a repeated curly bracket in my original code and it's now more-or-less working. I'll now see if I can figure out how to get it completely working.
Ha! I got my original code working perfectly. PHP rocks. I'm looking forward to learning more.