• Resolved danielwaddon

    (@danielwaddon)


    Hi there

    I am creating my first ever theme and I seam to be get a syntax error on the endif statement line. Could someone advise or help as to why its doing this?

    <aside id=”side” class=”sidebar”>

      <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Sidebar’) ); ?>
      <?php endif; ?>

    </aside>

Viewing 4 replies - 1 through 4 (of 4 total)
  • schulte

    (@schulte)

    Hi danielwaddon,

    Swap the semicolon for a colon, perhaps?

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar') ) : ?>
    <?php endif; ?>
    Thread Starter danielwaddon

    (@danielwaddon)

    Thanks Schult

    That’s fixed it 🙂 Well spotted

    Thread Starter danielwaddon

    (@danielwaddon)

    Thanks again for the help

    schulte

    (@schulte)

    You’re welcome.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘sidebar.php syntax error help’ is closed to new replies.