• I’m working to learn how to create my own templates. I started fresh and with the bare minimum code so I can see how it works, but once I uploaded it and attempted to look at it I received a parse error and I’m not sure why or how to fix it. Any help would be greatly appreciated

    Parse error: syntax error, unexpected ‘;’ in /mnt/w0603/d08/s07/b025e6a3/www/bohemianrefuge/wp-content/themes/The Bohemian Refuge/header.php on line 7

    header.php

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml">
    
            <head>
    
        <title>
        <?php bloginfo(’name’); ?><?php wp_title(’ &raquo; ‘,display); ?>
        <?php if(is_search()) { ?> &raquo; Search Results for <?php echo wp_specialchars($s); ?><?php } ?>
        </title>
    
        <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo(’charset’); ?>" />
        </meta><meta name="generator" content="WordPress <?php bloginfo(’version’); ?>" />
        </meta><meta name="description" content="<?php bloginfo(’description’); ?>" />
    
        <link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo(’stylesheet_url’); ?>" />
        <link rel="alternate" type="application/rss+xml" title="Subscribe to <?php bloginfo(’name’); ?>" href="<?php bloginfo(’rss2_url’); ?>" />
        <link rel="alternate" type="application/rss+xml" title="Subscribe to <?php bloginfo(’name’); ?>" href="<?php bloginfo(’rss_url’); ?>" />
        <link rel="alternate" type="application/rss+xml" title="Subscribe to <?php bloginfo(’name’); ?>" href=" <?php bloginfo(’atom_url’); ?>" />
    
        <?php wp_get_archives(’type=monthly&format=link’); ?>
    
        <?php wp_head(); ?>
        </head>
    
    	<body> <body link="#188494" vlink="#188494" text="#000000">
    
    	<ul id="menu"> <li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } ?>"><a href="<?php echo get_settings(’home’); ?>">Home</a></li> <?php wp_list_pages(’sort_column=menu_order&depth=1&title_li=’); ?> </ul>

    Am I doing something wrong?

Viewing 1 replies (of 1 total)
  • You have “curly” quotes in this line:
    bloginfo(’name’
    instead of straight ones like:
    bloginfo('name'

Viewing 1 replies (of 1 total)
  • The topic ‘Parse error’ is closed to new replies.