Can't get the if-else conditional tag to work
-
Hey, guys! I’m having a really annoying problem with a bit of a PHP code, that probably is easy. I’m just quite a beginner at PHP and trying to get the hang of it in wordpress.
What I want to do, is to display a higher banner (default) on the home page and then a smaller one (custom made in a div) on all the other pages.
The address for the site: https://uus.kaaskiri.ee (to see what it looks like right now – because of the faulty code, it displays both the default banner and the lower one.)
The code: (banner.php file)
[Code moderated as per the Forum Rules. Please use the pastebin]
Can anyone spot what’s wrong here? I’d be really grateful!
Jaan-Matti
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Can't get the if-else conditional tag to work’ is closed to new replies.