Title: [Graphene theme] header.php coding &#8211; HELP
Last modified: August 20, 2016

---

# [Graphene theme] header.php coding – HELP

 *  Resolved [Outright_Rugby](https://wordpress.org/support/users/outright_rugby/)
 * (@outright_rugby)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/graphene-theme-headerphp-coding-help/)
 * Hello,
 * I was adjusting the header.php in my theme editor.
    The piece of code I was adjusting
   looks like this:
 *     ```
       <div id="header">
   
               <?php
       			$header_img = '.$header_img.' alt="" class="header-img" />';
       			if ( ! is_front_page() && $graphene_settings['link_header_img'] ) {
       				$header_img_tag = '<a>';
       				$header_img_tag .= $header_img;
       				$header_img_tag .= '</a>';
   
       				$header_img = $header_img_tag;
       			}
       			echo $header_img;
       		?>
       ```
   
 * However, I get the following **ERROR** message when trying to visit my site:
 * Parse error: syntax error, unexpected T_STRING in \\CPT.WA\WEBS\Data01\Spaces\
   KEV40\outrightrugby.com\wwwroot\wp-content\themes\graphene\header.php on line
   65
 * Can anyone please help me to make the small adjustment that I am missing.
 * _[Moderator Note: Please post code or markup snippets between backticks or use
   the code button. As it stands, your code may now have been permanently damaged/
   corrupted by the forum’s parser.]_
 * Thank you.

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 9 months ago](https://wordpress.org/support/topic/graphene-theme-headerphp-coding-help/#post-3018098)
 * Can you post the contents of line 65 header.php?
 *  Thread Starter [Outright_Rugby](https://wordpress.org/support/users/outright_rugby/)
 * (@outright_rugby)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/graphene-theme-headerphp-coding-help/#post-3018110)
 * What tool can I use to find the exact line #65? Sorry!
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 9 months ago](https://wordpress.org/support/topic/graphene-theme-headerphp-coding-help/#post-3018111)
 * Try [Pastebin](http://pastebin.com/index.php?e=2) (submit your code once pasted).
 *  Thread Starter [Outright_Rugby](https://wordpress.org/support/users/outright_rugby/)
 * (@outright_rugby)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/graphene-theme-headerphp-coding-help/#post-3018127)
 * This is line #65:
 *  $header_img = ‘.$header_img.’ alt=”” class=”header-img” />’;
 * Thank you!
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 9 months ago](https://wordpress.org/support/topic/graphene-theme-headerphp-coding-help/#post-3018128)
 * Replace that line with
 *     ```
       $header_img = $header_img." alt='' class='header-img' />";
       ```
   
 *  Thread Starter [Outright_Rugby](https://wordpress.org/support/users/outright_rugby/)
 * (@outright_rugby)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/graphene-theme-headerphp-coding-help/#post-3018133)
 * Worked, thank you so much 🙂
 *  Thread Starter [Outright_Rugby](https://wordpress.org/support/users/outright_rugby/)
 * (@outright_rugby)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/graphene-theme-headerphp-coding-help/#post-3018153)
 * Now for some reason, I get the following message if I try and visit the site,
   and my custom header image does not display:
 * [http://www.outrightrugby.com/wp-content/themes/graphene/images/headers/flow.jpg](http://www.outrightrugby.com/wp-content/themes/graphene/images/headers/flow.jpg)
   alt=” class=’header-img’ />
 * it displays at the top of my site and the header image is not there. Do I need
   to insert the location of the header image into line 65?
 * [http://www.outrightrugby.com](http://www.outrightrugby.com)
 * Thank you 🙂

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

The topic ‘[Graphene theme] header.php coding – HELP’ is closed to new replies.

## Tags

 * [Coding](https://wordpress.org/support/topic-tag/coding/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [header image](https://wordpress.org/support/topic-tag/header-image/)
 * [header.php](https://wordpress.org/support/topic-tag/header-php/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 7 replies
 * 2 participants
 * Last reply from: [Outright_Rugby](https://wordpress.org/support/users/outright_rugby/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/graphene-theme-headerphp-coding-help/#post-3018153)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
