WordPress.org

Forums

Sidebars: unexpected $end in sidebar.php at end of file (5 posts)

  1. Lezarwerks
    Member
    Posted 5 years 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:
    http://privatepaste.com/b7479c5349

    Before modifying functions.php:
    http://privatepaste.com/22c7dcafdd

    After modifying sidebar.php:
    http://privatepaste.com/39405d0b7a

    After modifying functions.php:
    http://privatepaste.com/de0b914af0

  2. Lezarwerks
    Member
    Posted 5 years ago #

    Hello,

    I really need to resolve this problem. Thank you.

    Sincerely,
    Joshua Szanto

  3. vtxyzzy
    Member
    Posted 5 years ago #

    Looks like you are missing <?php endif; ?> after line 43 in sidebar.php:

    </div> <!-- end .sidebar-box .s-ark -->
          <?php endif; // Added by vtxyzzy ?>
       </div> <!-- end #sidebar-left -->
  4. Lezarwerks
    Member
    Posted 5 years ago #

    Thanks! That fixed it. =)

  5. vtxyzzy
    Member
    Posted 5 years ago #

    Great! Now, please use the dropdown at top right to mark this topic 'Resolved'.

Topic Closed

This topic has been closed to new replies.

About this Topic