Title: [Theme: Eleven40 child theme] How to fix function.php syntax error?
Last modified: August 22, 2016

---

# [Theme: Eleven40 child theme] How to fix function.php syntax error?

 *  [whepner](https://wordpress.org/support/users/whepner/)
 * (@whepner)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/theme-eleven40-child-theme-how-to-fix-functionphp-syntax-error/)
 * Hello,
 * I added this snippet of code from another site to the end of the functions.php:
 * add_action( ‘genesis_after_header’, ‘sk_show_banner_below_header’ );
    function
   sk_show_banner_below_header() {
 *  echo ‘<div class=”banner-below-header”>
    <div class=”wrap”> <img src=”[http://genesis.dev/wp-content/uploads/2014/01/header-1140×200.jpg&#8221](http://genesis.dev/wp-content/uploads/2014/01/header-1140×200.jpg&#8221);
   alt=”my banner” /> </div> </div>’;
 * }
 * I received this even after deleting the added section of code:
 * syntax error, unexpected ‘genesis_after_header’ (T_STRING), expecting ‘,’ or ‘;’
   in /home/youngt7/public_html/wp-content/themes/eleven40-pro/functions.php on 
   line 141
 * Also the very last line of code in functions.php was deleted. After line:
    remove_action(‘
   genesis_after_entry’, ‘genesis_after_entry_widget_area’ );
 * Any help in fixing this problem would be greatly appreciated.
    Thanks

The topic ‘[Theme: Eleven40 child theme] How to fix function.php syntax error?’ 
is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [eleven40](https://wordpress.org/support/topic-tag/eleven40/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * 0 replies
 * 1 participant
 * Last reply from: [whepner](https://wordpress.org/support/users/whepner/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/theme-eleven40-child-theme-how-to-fix-functionphp-syntax-error/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
