conditional NOT home condition tag
-
I”m using this piece of code and it works fine except I don’t want it to show up on the home page. Everything I’ve tried issues a syntax error.
I want it to be…if it’s NOT the home page then do this.
<div id="headerleft"> <?php if ( isset ($swp_options['swp_logo']) && ($swp_options['swp_logo']!="") ) { ?> <div class="logo"><img src="<?php echo esc_attr(strip_tags($swp_options['swp_logo'])); ?>" alt="<?php esc_attr(strip_tags(bloginfo('name'))); ?>" /></div> <?php } else { ?> <h1><?php esc_attr(strip_tags(bloginfo('name'))); ?></h1> <h5><?php esc_attr(strip_tags(bloginfo('description'))); ?></h5> <?php } ?> </div>
Can anyone show me where and how to put the (!is_home() in??
Much appreciated!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘conditional NOT home condition tag’ is closed to new replies.