• Resolved theresajo1

    (@theresajo1)


    I click on checkout and I get

    Parse error: syntax error, unexpected ‘else’ (T_ELSE) in /home3/oneota/public_html/Classes/wp-content/themes/organic_natural/page.php on line 45

    The code on the page is

    <?php
    /**
    * This template displays the default page content.
    *
    * @package Natural
    * @since Natural 3.0
    *
    */
    get_header(); ?>

    <!– BEGIN .post class –>
    <div <?php post_class(); ?> id=”page-<?php the_ID(); ?>”>

    <?php if ( has_post_thumbnail()) { ?>
    <div class=”feature-img banner shadow radius-full”><?php the_post_thumbnail( ‘featured-large’ ); ?></div>
    <?php } ?>

    <!– BEGIN .row –>
    <div class=”row”>

    <!– BEGIN .eleven columns –>
    <div class=”eleven columns”>

    <!– BEGIN .postarea –>
    <div class=”postarea”>

    <?php get_template_part( ‘loop’, ‘page’ ); ?>

    <!– END .postarea –>
    </div>

    <!– END .eleven columns –>
    </div>

    <!– BEGIN .five columns –>
    <div class=”five columns”>

    <!– END .five columns –>
    </div>

    <?php else : ?>

    <!– BEGIN .sixteen columns –>
    <div class=”sixteen columns”>

    <!– BEGIN .postarea full –>
    <div class=”postarea full”>

    <?php get_template_part( ‘loop’, ‘page’ ); ?>

    <!– END .postarea full –>
    </div>

    <!– END .sixteen columns –>
    </div>

    <?php endif; ?>

    <!– END .row –>
    </div>

    <!– END .post class –>
    </div>

    <?php get_footer(); ?>

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    I think this has to do with previously closing your if statement. It’s fully closed way above the else statement and thus else is not expected to be in that spot.

    If the purpose of the if/else statement is to check for a thumbnail and then display a different output, you’d need to put the closing bracket right before the else statement.

    If you didn’t develop this theme, contact the theme developers for more help.

    melinda a11n

    (@melindahelt)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘issues with page.php checkout’ is closed to new replies.