Jump to content

o2cathy

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

o2cathy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. No parsing errors! Instead of the img, it is outputting this: http://localhost/wordpress/wp-content/themes/healing Designs at the top of the screen. That is not the "alt" for that image. it is using the "echo" quite literally instead of using the html. I don't know why though? LooieENG, thanks for that code!
  2. <?php if (is_front_page()) {echo '<img class="lower" src="<?php bloginfo('template_directory');?>/images/splash.jpg" usemap="#bg" style="border:none;" alt="background"/>'; } elseif (is_page('Portfolio')) /*use portfolio image*/{ echo '<img class="lower" src="<?php bloginfo('template_directory');?>/images/portfolio.jpg" usemap="#bg" style="border:none;" alt="background"/>'; } elseif (is_page('Ordering')) { /*use ordering image*/ echo '<img class="lower" src="<?php bloginfo('template_directory');?>/images/ordering.jpg" usemap="#bg" style="border:none;" alt="background"/>'; } else { /*for everything else use "blog" image*/ echo '<img class="lower" src="<?php bloginfo('template_directory');?>/images/blog.jpg" usemap="#bg" style="border:none;" alt="background"/>'; } ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.