Title: Adding Image as H1
Last modified: August 20, 2016

---

# Adding Image as H1

 *  Resolved [NWC](https://wordpress.org/support/users/nwc/)
 * (@nwc)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/adding-image-as-h1/)
 * Hi,
 * I am trying to use an image for the H1 Headline rather than text that is inputted
   under Dashboard->Appearance->Theme Options->Home Page.
 * I have a child theme going for the Responsive theme that I am customizing and
   am thinking that editing the code in home.php will be the place to do this. Here
   is the code I am looking to edit
 *     ```
       <?php $options = get_option('responsive_theme_options');
       			// First let's check if headline was set
       			    if ($options['home_headline']) {
                           echo '<h1 class="featured-title">';
       				    echo $options['home_headline'];
       				    echo '</h1>';
       			// If not display dummy headline for preview purposes
       			      } else {
       			        echo '<h1 class="featured-title">';
       				    echo __('Hello, World!','responsive');
       				    echo '</h1>';
       				  }
       			?>
       ```
   
 * In the “If not display the dummy headline for preview purposes” section, I am
   unsuccessfully trying to insert an img src that we’ll call logo.jpg that is in
   themes/responsive-child/images/logo.jpg
 * I have searched but not been able to find the correct code to do this. I would
   appreciate it if someone could point me in the right direction.
 * Thanks in advance,
 * Jeff
 * _[Moderator Note: Please post code or markup snippets between backticks or use
   the code button. As it stands, your code may now have been permanently damaged/
   corrupted by the forum’s parser.]_

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 8 months ago](https://wordpress.org/support/topic/adding-image-as-h1/#post-3101729)
 * What code have you tried?
    Would you like the image to replace the text?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/adding-image-as-h1/#post-3101732)
 * Try posting on the parent theme’s dedicated forum: [http://themeid.com/forum/](http://themeid.com/forum/)
 *  Thread Starter [NWC](https://wordpress.org/support/users/nwc/)
 * (@nwc)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/adding-image-as-h1/#post-3101738)
 * Hi Andrew,
 * Thanks so much for your reply. I have tried using the img src code(in several
   versions, i.e. <img src=”” and $image, etc.) in the 2nd Echo line where it is
   giving the “Hello World” if nothing is entered for text.
 * Yes I would like the image to replace the text, as I would like to use our company
   font/logo for this.
 * Thanks again for your reply,
 * Jeff
 *  Thread Starter [NWC](https://wordpress.org/support/users/nwc/)
 * (@nwc)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/adding-image-as-h1/#post-3101739)
 * Thanks esmi, I apologize for posting in the wrong area of the forum.
 *  [Emil Uzelac](https://wordpress.org/support/users/emiluzelac/)
 * (@emiluzelac)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/adding-image-as-h1/#post-3101778)
 * Please close this topic as resolved and we’ll take care of this at [http://themeid.com/forum](http://themeid.com/forum)
 * Thanks,
    Emil
 *  Thread Starter [NWC](https://wordpress.org/support/users/nwc/)
 * (@nwc)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/adding-image-as-h1/#post-3101790)
 * I have now listed this topic as Resolved and will re-post it at themeid.com/forum
   as requested.
 * Thanks,
 * Jeff
 *  [Emil Uzelac](https://wordpress.org/support/users/emiluzelac/)
 * (@emiluzelac)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/adding-image-as-h1/#post-3101797)
 * Thanks, I already answered 🙂
 * Emil

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

The topic ‘Adding Image as H1’ is closed to new replies.

## Tags

 * [image](https://wordpress.org/support/topic-tag/image/)

 * 7 replies
 * 4 participants
 * Last reply from: [Emil Uzelac](https://wordpress.org/support/users/emiluzelac/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/adding-image-as-h1/#post-3101797)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
