Title: Attempting Multi Sidebar Theme &#8211; -PHP  Syntax Error&#8230;  Help Please?
Last modified: August 19, 2016

---

# Attempting Multi Sidebar Theme – -PHP Syntax Error… Help Please?

 *  [grahamnourishwisecom](https://wordpress.org/support/users/grahamnourishwisecom/)
 * (@grahamnourishwisecom)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/attempting-multi-sidebar-theme-php-syntax-error-help-please/)
 * 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](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:
 * Sidebar.php
    <div>
    -  <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar() ) : else:?
      >
       <?php endif; ?>
 * </div>
 * Sidebar2.php
    <div>
    -  <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(2) ) : else:?
      >
       <?php endif; ?>
 * </div>
 * Sidebar3.php
    <div>
    -  <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(3) ) : else:?
      >
       <?php endif; ?>
 * </div>
 * Then I edited the functions.php file to include:
 * <?php
    if ( function_exists(‘register_sidebars’) ) register_sidebars(3); ?>
 * 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!!!
 * [Ghraham@gmail.com](https://wordpress.org/support/topic/attempting-multi-sidebar-theme-php-syntax-error-help-please/Ghraham@gmail.com?output_format=md)

Viewing 1 replies (of 1 total)

 *  Thread Starter [grahamnourishwisecom](https://wordpress.org/support/users/grahamnourishwisecom/)
 * (@grahamnourishwisecom)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/attempting-multi-sidebar-theme-php-syntax-error-help-please/#post-1279203)
 * I get the three sidebars appearing in my widget page, but the widgets wont pop
   up on the home page.

Viewing 1 replies (of 1 total)

The topic ‘Attempting Multi Sidebar Theme – -PHP Syntax Error… Help Please?’ is 
closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 1 reply
 * 1 participant
 * Last reply from: [grahamnourishwisecom](https://wordpress.org/support/users/grahamnourishwisecom/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/attempting-multi-sidebar-theme-php-syntax-error-help-please/#post-1279203)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
