Forums
Home / Fixing WordPress / sidebar.php syntax error help
(@danielwaddon)
8 years, 10 months ago
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”>
</aside>
(@schulte)
Hi danielwaddon,
Swap the semicolon for a colon, perhaps?
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar') ) : ?> <?php endif; ?>
Thanks Schult
That’s fixed it 🙂 Well spotted
Thanks again for the help
You’re welcome.