Title: almost-spring header.php modification
Last modified: August 18, 2016

---

# almost-spring header.php modification

 *  [19leo19](https://wordpress.org/support/users/19leo19/)
 * (@19leo19)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/almost-spring-headerphp-modification/)
 * I am using almost-spring theme. I want to see my category name instead of my 
   blog name when clicked on categories. So I changed the header.php in almost spring
   theme as below:
 * original:
 * PHP Code:
    ‘ <div id=”header”> <h1>“><?php bloginfo(‘name’); ?></h1> </div> ‘
 * modified:
 * PHP Code:
    ‘ <div id=”header”> <h1>“> <?php if (single_cat_title() != “”) { echo
   single_cat_title(); } else{ echo “My Blog Name”; } ?></h1> </div> ‘
 * The Result is below when I clicked the category name:
 * My Category NameMy Blog Name
 * I only want the category name, is there something wrong with the PHP code?
 * Thank you,

Viewing 1 replies (of 1 total)

 *  Thread Starter [19leo19](https://wordpress.org/support/users/19leo19/)
 * (@19leo19)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/almost-spring-headerphp-modification/#post-477069)
 * I have done it with is_category function, I think almost-sp ripped some functions
   from the default one…
 * Leo

Viewing 1 replies (of 1 total)

The topic ‘almost-spring header.php modification’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [19leo19](https://wordpress.org/support/users/19leo19/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/almost-spring-headerphp-modification/#post-477069)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
