Title: widgetizing two themes
Last modified: August 19, 2016

---

# widgetizing two themes

 *  [mosaka](https://wordpress.org/support/users/mosaka/)
 * (@mosaka)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/widgetizing-two-themes/)
 * WordPress is not recognizing that I have 2 themes I need help!
 * **my functions look like this:**
 * <?php
    if ( function_exists(‘register_sidebar’) ) register_sidebar(array( ‘before_widget’
   => ‘<li id=”%1$s” class=”widget %2$s”>’, ‘after_widget’ => ”, ‘before_title’ 
   => ”, ‘after_title’ => ”, ));
 * ?>
 * **My left sidebar looks like this:**
 * <!– begin l_sidebar –>
 *  <div id=”l_sidebar”>
    <ul id=”l_sidebarwidgeted”> <?php if ( function_exists(‘
   dynamic_sidebar’) && dynamic_sidebar(1) ) : else : ?>
 *  <li id=”Recent”>
    <h2>Recently Written</h2>
    -  <?php get_archives(‘postbypost’, 10); ?>
 *  <li id=”Categories”>
    <h2>Categories</h2>
    -  <?php wp_list_cats(‘sort_column=name’); ?>
 *  <li id=”Archives”>
    <h2>Archives</h2>
    -  <?php wp_get_archives(‘type=monthly’); ?>
 *  <li id=”Blogroll”>
    <h2>Blogroll</h2>
    -  <?php get_links(-1, ‘
    - ‘, ‘
    - ‘, ‘ – ‘); ?>
 *  <li id=”Admin”>
    <h2>Admin</h2>
    -  <?php wp_register(); ?>
    - <?php wp_loginout(); ?>
    - [Debt consolidation](http://www.bestdebtservices.com)
    - [WordPress](http://www.wordpress.org/)
    -  <?php wp_meta(); ?>
    - [XHTML](http://validator.w3.org/check?uri=referer)
 *  <h2>Search</h2>
    <form id=”searchform” method=”get” action=”<?php echo $_SERVER[‘
   PHP_SELF’]; ?>”> <input type=”text” name=”s” id=”s” size=”30″ value=”search this
   site…”/></form>
 *  <?php endif; ?>
 * </div>
 * <!– end l_sidebar –>
 * **and my right sidebar looks like this:**
 * <!– begin r_sidebar –>
 *  <div id=”r_sidebar”>
    <ul id=”r_sidebarwidgeted”> <?php if ( function_exists(‘
   dynamic_sidebar’) && dynamic_sidebar(2) ) : else : ?>
 *  <li id=”Themes”>
    <h2>WP Themes</h2>
    - [Activate](http://www.briangardner.com/themes/activate-wordpress-theme.htm)
    - [Blindigo](http://www.briangardner.com/themes/blindigo-wordpress-theme.htm)
    - [Blue Zinfandel](http://www.briangardner.com/themes/blue-zinfandel-wordpress-theme.htm)
    - [Eye Candy](http://www.briangardner.com/themes/eyecandy-wordpress-theme.htm)
    - [Detour](http://www.briangardner.com/themes/detour-wordpress-theme.htm)
    - [Frequency](http://www.briangardner.com/themes/frequency-wordpress-theme.htm)
    - [Gladiola](http://www.briangardner.com/themes/gladiola-wordpress-theme.htm)
    - [Radiance](http://www.briangardner.com/themes/radiance-wordpress-theme.htm)
    - [Vertigo](http://www.briangardner.com/themes/vertigo-wordpress-theme.htm)
    - [Vertigo Squared](http://www.briangardner.com/themes/vertigo-squared-wordpress-theme.htm)
    - [Wonderland](http://www.briangardner.com/themes/wonderland-wordpress-theme.htm)
    -  <?php endif; ?>
 * </div>
 * <!– end r_sidebar –>

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/widgetizing-two-themes/#post-780563)
 * You have a spam link in your footer. Unless you put that link there yourself,
   you have either been hacked or are using a “sponsored” spam theme.
 *  [jonimueller](https://wordpress.org/support/users/jonimueller/)
 * (@jonimueller)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/widgetizing-two-themes/#post-780579)
 * You mean two sidebars, don’t you?
 *  [jonimueller](https://wordpress.org/support/users/jonimueller/)
 * (@jonimueller)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/widgetizing-two-themes/#post-780582)
 * Here’s my functions.php file for a 2-sidebar theme:
 *     ```
       <?php
       if ( function_exists('register_sidebar') )
       register_sidebar(array('name'=>'sidebar-left',
       'before_widget' => '<li>',
       'after_widget' => '</li>',
       'before_title' => '<h3>',
       'after_title' => '</h3>',
       ));
       register_sidebar(array('name'=>'sidebar-right',
       'before_widget' => '',
       'after_widget' => '',
       'before_title' => '<h3>',
       'after_title' => '</h3>',
       ));
       ?>
       ```
   
 * And here’s the sidebar code for each, you know where this code goes, I believe:
 *     ```
       <?php if ( !function_exists('dynamic_sidebar')
       || !dynamic_sidebar('sidebar-left') ) : ?>
       ```
   
 * And
 *     ```
       <?php if ( !function_exists('dynamic_sidebar')
       || !dynamic_sidebar('sidebar-right') ) : ?>
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘widgetizing two themes’ is closed to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [jonimueller](https://wordpress.org/support/users/jonimueller/)
 * Last activity: [17 years, 10 months ago](https://wordpress.org/support/topic/widgetizing-two-themes/#post-780582)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
