Ready to get started?Download WordPress


[resolved] Parse error when widgetizing theme (3 posts)

  1. jstgtpaid
    Posted 7 years ago #

    I am trying to widgetize a theme using the techniques described at this site . I modified the original format of the sidebar.php file to utilize good sidebar markup as described in the above page and it works great.

    I created the functions.php file and added the following into that file...

    if ( function_exists('register_sidebar') )

    When I add the following code to my sidebar.php file it creates a parse error...

    <?php if ( !function_exists('dynamic_sidebar')
    || !dynamic_sidebar() ) : ?>

    Any ideas on how I could fix this or where I could look for additional information?

    Thanks in advance,

  2. Jeremy Clark
    Posted 7 years ago #

    At the end of your sidebar you need to add the end of the if statement
    <?php endif; ?>

  3. jstgtpaid
    Posted 7 years ago #

    You are awesome Jeremy That worked.


Topic Closed

This topic has been closed to new replies.

About this Topic