Support » Plugins and Hacks » Sidebars: unexpected $end in sidebar.php at end of file
6 years, 8 months ago
After properly adding a second sidebar to the theme page-style, I get this error on the blog:
Parse error: syntax error, unexpected $end in /home/public_html/wp-content/themes/page-style/sidebar.php on line 80
In wp-admin, however, the second sidebar is recognized successfully.
Original sidebar is under id=”sidebar-right”.
Additional sidebar is under id=”sidebar-left”, and the left sidebar became #1 and the right sidebar as #2.
Before modifying sidebar.php:
Before modifying functions.php:
After modifying sidebar.php:
After modifying functions.php:
6 years, 7 months ago
I really need to resolve this problem. Thank you.
Looks like you are missing <?php endif; ?> after line 43 in sidebar.php:
<?php endif; ?>
</div> <!-- end .sidebar-box .s-ark -->
<?php endif; // Added by vtxyzzy ?>
</div> <!-- end #sidebar-left -->
Thanks! That fixed it. =)
Great! Now, please use the dropdown at top right to mark this topic ‘Resolved’.