Title: adding class=&#8221;&#8221; to background-image
Last modified: August 19, 2016

---

# adding class=”” to background-image

 *  [pj1s](https://wordpress.org/support/users/pj1s/)
 * (@pj1s)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/adding-class-to-background-image/)
 * Is there any way to add a class=”” to my header image – which is set in the stylesheet(
   in #header {background-image: url()}) … or do I need to start tampering with 
   the actual header.php?
 * The point is, I’m trying out child themes, and would love not to tamper with 
   the parent theme files…
 * Perhaps someone has tried something similar with the child themes functions.php…
   I’m guessing it would somehow be possible.
 * Kind regards – constructive ideas appreciated.

The topic ‘adding class=”” to background-image’ is closed to new replies.

## Tags

 * [background](https://wordpress.org/support/topic-tag/background/)
 * [class](https://wordpress.org/support/topic-tag/class/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [img](https://wordpress.org/support/topic-tag/img/)

 * 0 replies
 * 1 participant
 * Last reply from: [pj1s](https://wordpress.org/support/users/pj1s/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/adding-class-to-background-image/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
