Title: Theme preview issue
Last modified: July 12, 2019

---

# Theme preview issue

 *  [alex-codes](https://wordpress.org/support/users/greenonion8/)
 * (@greenonion8)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/theme-preview-issue-2/)
 * Hi,
    I can’t figure out why .header-img body class keeps being added in the theme
   preview in the theme directory. This class comes with completely different header
   styles but without an actual header image the header in the preview looks weird
   with huge spacing above and below which shouldn’t be there.
 * Currently this class is added this way:
    if ( get_header_image() !== false ) {
   $classes[] = ‘header-img’; }
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftheme-preview-issue-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/theme-preview-issue-2/#post-11727281)
 * I recommend asking at [https://wordpress.org/support/theme/actinia](https://wordpress.org/support/theme/actinia)
   so the theme’s developers and support community can help you with this.

Viewing 1 replies (of 1 total)

The topic ‘Theme preview issue’ is closed to new replies.

## Tags

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

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/theme-preview-issue-2/#post-11727281)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
