Support » Fixing WordPress » Parse error when widgetizing theme

  • Resolved jstgtpaid

    (@jstgtpaid)


    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…

    <?php
    if ( function_exists(‘register_sidebar’) )
    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,
    Steven

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parse error when widgetizing theme’ is closed to new replies.