Title: Linking a header image using CSS?
Last modified: December 2, 2020

---

# Linking a header image using CSS?

 *  [panther_26](https://wordpress.org/support/users/panther_26/)
 * (@panther_26)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/linking-a-header-image-using-css/)
 * I have a header image that is part of the theme. Currently, it does not contain
   the option to link or provide Alt text.
 * Can custom CSS be used to include these variables?
 * Example code:
    `<div id="wp-custom-header" class="wp-custom-header"><img src="
   ____" width="1100" height="400" /></div>`
    -  This topic was modified 5 years, 5 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 5 months ago](https://wordpress.org/support/topic/linking-a-header-image-using-css/#post-13736133)
 * No, CSS does not do that.
 * Contact your theme’s author via their support forum to resolve this.
 *  [coder01](https://wordpress.org/support/users/coder01/)
 * (@coder01)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/linking-a-header-image-using-css/#post-13736256)
 * Hi [@panther_26](https://wordpress.org/support/users/panther_26/) !
    It can be
   done using following CSS code below:
 *     ```
       <style>
       .MyClass123{
       	content:url("http://imgur.com/SZ8Cm.jpg");
       }
       </style>
   
       <img class="MyClass123"/>
       ```
   
    -  This reply was modified 5 years, 5 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
    -  This reply was modified 5 years, 5 months ago by [coder01](https://wordpress.org/support/users/coder01/).
    -  This reply was modified 5 years, 5 months ago by [coder01](https://wordpress.org/support/users/coder01/).

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

The topic ‘Linking a header image using CSS?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [coder01](https://wordpress.org/support/users/coder01/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/linking-a-header-image-using-css/#post-13736256)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
