Support » Fixing WordPress » Parse error:syntax error – just about to give up!

  • KeynoteAmerica


    I am extremely new at WP. I’m hosted through godaddy. I’m using a theme called Independence. I created a child theme with only a style.css. I set up a full width page in the Parent theme and pointed the Child to it using the @import. Here’s what I got on the site: “Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /home/content/84/9458384/html/wp-content/themes/Independence/fullwidth-page.php on line 19”

    This is what my fullwidth-page looks like:

     Template Name: Full Width, no sidebar
     get_header(); ?>
    <div id="container" class="full-width">
    <div id="content" role="main">
    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    <div id="post-<?php the_ID(); ?>" <?php post_class();
    <h1 class="entry-title"><?php the_title();
    <div class="entry-content">
    <?php the_content(); ?>
    <?php wp_link_pages( array( 'before' => '<div
    class="page-link">' . __( 'Pages:', 'Independence' ), 'after' =>
    '</div>' ) ); ?>
    <?php edit_post_link( __( 'Edit', 'Independence'
    ), ',<span class="edit-link">', '</span>; ?>
    </div><!-- .entry-content -->
    </div><!-- #post-## -->
    <?php endwhile; ?>
    </div><!-- #content -->
    </div><!-- #container -->
    <?php get_footer(); ?>

    Please help – I’m at the end of my rope…


Viewing 3 replies - 1 through 3 (of 3 total)
  • Pioneer Web Design


    Not that I have reviewed each line of code above, but, please provide a site link, also ‘T_ENCAPSED_AND_WHITESPACE’ typically means you cut and paste something and brought in hidden white space or extra characters.

    Make sure the file is created and saved as UTF-8 with no BOM prior to upload.



    Here’s the site link. Keynote America As for the other stuff – I don’t speak WP yet…

    Pioneer Web Design


    Check your site rule out your custom page template, remove it as the assigned template (for home page at least for now), make sure to flush server cache and re-validate at link, if errors there go away, it’s in the page template, and the link will have pointed you some advise that you can search for help on. Work on one issue at a time.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Parse error:syntax error – just about to give up!’ is closed to new replies.