StoryBoutAGirl06 Posted March 23, 2013 Share Posted March 23, 2013 (edited) Hi. I am relatively new to php and am trying to code a wordpress theme from scratch. In my header.php I am getting an error: Parse error: syntax error, unexpected ';' in /home/storybou/public_html/wp-content/themes/mint-strawberry/header.php on line 7 Here is the full code for header.php: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title><?php wp_title('«', true, 'right'); ?><?php bloginfo('name'); ?></title> <link href="<?php bloginfo('sylesheet_url'; ?>")" rel="stylesheet" /> <link href='http://fonts.googleapis.com/css?family=Amatic+SC' rel='stylesheet' type='text/css'> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!--[if lt IE 9]> <link href="<?php bloginfo('template_url'); ?>/css/ie.css" rel="stylesheet" /> <![endif]--> <!--WP generated header--> <?php wp_head(); ?> <!--End WP generated header--> </head> <body> <div id="container"> <header> <h1><a href="<?php echo get_option('home'); ?>" title="A Story About A Girl">A Story About A Girl</a></h1> <nav role="navigation"> <ul> <li><?php wp_list_pages('title_li=' ); ?> </ul> </nav> </header> I am not sure what is the best way to figure out where the error is. I know a line is given but I can't find anything on that line and know it may not really be relative to what I am seeing. Is there another way to look? A program I can use or a method or something. Any help would be greatly appreciated. Thanks. footer.php.txt Edited March 23, 2013 by StoryBoutAGirl06 Quote Link to comment https://forums.phpfreaks.com/topic/276043-parse-error/ Share on other sites More sharing options...
Solution requinix Posted March 23, 2013 Solution Share Posted March 23, 2013 You can't find anything? It says line 7 and I'm looking at your code right now and there's definitely something there. Quote Link to comment https://forums.phpfreaks.com/topic/276043-parse-error/#findComment-1420439 Share on other sites More sharing options...
StoryBoutAGirl06 Posted March 23, 2013 Author Share Posted March 23, 2013 I couldn't figure out what was line 7.... but anyways figured it out for myself... Quote Link to comment https://forums.phpfreaks.com/topic/276043-parse-error/#findComment-1420440 Share on other sites More sharing options...
haku Posted March 23, 2013 Share Posted March 23, 2013 It's the line that comes after 6. Quote Link to comment https://forums.phpfreaks.com/topic/276043-parse-error/#findComment-1420452 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.