Dynamically Change Static Page Images
-
HI, this is my first post for help in wordpress, and man do I really need it. This is the first time I’ve developed a client’s site using multisite, and I’m having trouble applying the appropriate header image to it’s site. There are six sites in all, and I’m using the same template for all six sites’ front pages. Also, the front page is static and doesn’t have a specific page selected.
The conditional below is my attempt at specifying specific images depending on which sub-site I’m on. It keeps throwing a syntax error, (sublime calls it a parse error). I would be so grateful for any help!
<?php if( get_bloginfo('All in with Laila Ali')) { <img src="<?php bloginfo('template_directory');?>/images/Banner-LailaAli.jpg" /> } elseif{ if( get_bloginfo('Jaimies 15 Minute Meals')) { <img src="<?php bloginfo('template_directory');?>/images/Banner-JamieOliver.jpg" /> } } elseif{ if( get_bloginfo('Lucky Dog')) { <img src="<?php bloginfo('template_directory');?>/images/Banner-LuckyDog.jpg" /> } } elseif{ if( get_bloginfo('Game Changers with Kevin Frazier')) { <img src="<?php bloginfo('template_directory');?>/images/Banner-GameChangers.jpg" /> } } elseif{ if( get_bloginfo('Recipe Rehab')) { <img src="<?php bloginfo('template_directory');?>/images/Banner-RecipeRehab.jpg" /> } } else { <img src="<?php bloginfo('template_directory');?>/images/Banner-PetVet.jpg" /> } ?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Dynamically Change Static Page Images’ is closed to new replies.