Conditional Images – Need PHP help
-
I want certain pages to have a certain image, the rest of the pages to have a default image if its not those certain pages.
This is what I have so far, but obviously is massively incorrect as it doesn’t work, just breaks my site!
<div id="wrapper"> <div id="rightCol"> <?php if (is_page('3,4,6,10,7,8'())include("images/header_home.jpg" alt="title here"); { } else include("images/header_img.jpg" alt="title here");) { } ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h1><?php if (is_frontpage())echo"Accelerated Instrument Ratings<br />& Safety Pilot Services"; else the_title(); ?></h1> <?php the_content(); ?> <?php endwhile; endif; ?> </div><!-- end rightCol -->
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Conditional Images – Need PHP help’ is closed to new replies.