WordPress.org

Support

Support » Themes and Templates » [Resolved] [Graphene theme] header.php coding – HELP

[Resolved] [Graphene theme] header.php coding – HELP

  • Outright_Rugby
    Member

    @outright_rugby

    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)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] [Graphene theme] header.php coding – HELP’ is closed to new replies.