Ready to get started?Download WordPress


Attempting Multi Sidebar Theme - -PHP Syntax Error... Help Please? (2 posts)

  1. graham@nourishwise.com
    Posted 4 years ago #

    So I am trying to put 3 widget ready Sidebars into a single sidebar theme called OmniBlock.

    My url is: http://www.violetfolklore.com/wordpress

    Here is what I have done. I started by creating the files: sidebar.php, sidebar2.php, and sidebar3.php. Inside of each of these files I included:


      <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
      <?php endif; ?>



      <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
      <?php endif; ?>



      <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(3) ) : else : ?>
      <?php endif; ?>


    Then I edited the functions.php file to include:

    if ( function_exists('register_sidebars') )

    Then I call them from the index with:

    <?php include (TEMPLATEPATH . '/sidebar.php'); ?>
    <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
    <?php include (TEMPLATEPATH . '/sidebar3.php'); ?>

    It seems like that should do it! My syntax error message is:

    Parse error: syntax error, unexpected T_ENDIF in /home/theglean/public_html/violetfolklore.com/wordpress/wp-content/themes/omniblock/sidebar2.php on line 7

    If you can help me out. I would be most appreciative!!!


  2. graham@nourishwise.com
    Posted 4 years ago #

    I get the three sidebars appearing in my widget page, but the widgets wont pop up on the home page.

Topic Closed

This topic has been closed to new replies.

About this Topic