WordPress.org

Ready to get started?Download WordPress

Forums

Parse error:syntax error - just about to give up! (4 posts)

  1. KeynoteAmerica
    Member
    Posted 2 years ago #

    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:

    <?php
     /**
     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();
    ?></h1>
    <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...

    Thanks.

  2. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    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.

  3. KeynoteAmerica
    Member
    Posted 2 years ago #

    Here's the site link. Keynote America As for the other stuff - I don't speak WP yet...

  4. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    Check your site here..to 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.

Topic Closed

This topic has been closed to new replies.

About this Topic