Title: Question regrding Heder and using PHP coding
Last modified: August 19, 2016

---

# Question regrding Heder and using PHP coding

 *  Resolved [Eddy I](https://wordpress.org/support/users/eddy-i/)
 * (@eddy-i)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/question-regrding-heder-and-using-php-coding/)
 * Hi:
 * I am creating a website – all pages are using the same theme. I have edited the
   header and added in a Flsh object which is running fine.
 * If I want to swap the flash object on a specific page and swap it our for a .
   png file… what would the code look like?
 * Basally something to the effect….
 * If bloginfo( ‘name’ )=”Home” then execute the flash object else display the png.
 * If someone could give me an example of what the PHP code would look like it would
   be appreciated. I have the flsh code working – just not sure how to form the 
   if / e;se statement using the <object> </object> tags in HTML
 * Eddy

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/question-regrding-heder-and-using-php-coding/#post-2042297)
 * there are a number of conditional tags you may use for this:
    [http://codex.wordpress.org/Conditional_Tags](http://codex.wordpress.org/Conditional_Tags)
 * example:
 *     ```
       <?php if( is_front_page() ) : ?>
       <!-- show flash -->
       <?php else : ?>
       <!-- show png -->
       <?php endif; ?>
       ```
   
 *  Thread Starter [Eddy I](https://wordpress.org/support/users/eddy-i/)
 * (@eddy-i)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/question-regrding-heder-and-using-php-coding/#post-2042444)
 * Thank – just wasn’t sure of the syntax – that’s got it working
 * much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Question regrding Heder and using PHP coding’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Eddy I](https://wordpress.org/support/users/eddy-i/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/question-regrding-heder-and-using-php-coding/#post-2042444)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
