Title: Widgetizing help!!
Last modified: August 19, 2016

---

# Widgetizing help!!

 *  [Linda](https://wordpress.org/support/users/imprefectlin/)
 * (@imprefectlin)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/widgetizing-help/)
 * Hello guys, I hope I can get some help with this. D: (Also, I apologize if this
   question has been asked before, but I can’t realistically look though 1593 pages
   of them!)
 * I’ve been trying to “Widgetize” the theme I made for my blog/personal site ([http://www.technicolor-dreams.com/wm](http://www.technicolor-dreams.com/wm))
   using these instructions:
    [http://codex.wordpress.org/Widgetizing_Themes](http://codex.wordpress.org/Widgetizing_Themes)
 * No matter how hard I try, and how exactly I follow the instructions, I can’t 
   seem to get it working. I constantly get the pink “No sidebars defined” error
   box when I go into “Appearance > Widgets” in WordPress’ admin panel.
 * Here’s what my header.php file looks like (At least the bit in which I call the
   sidebar):
 *     ```
       </div>
   
       <?php get_sidebar(); ?>
   
       <div id="content" style="position: absolute; top: 160px; left: 455px; width: 405px; padding: 10px">
       ```
   
 * And this is what my sidebar.php file’s beginning looks like, where I put the 
   php code from that help page (I even changed the markup of this to use ul and
   li tags):
 *     ```
       <ul id="sidebar" style="position: absolute; top: 112px; left: 875px; width: 245px; padding: 5px">
       <?php if ( !function_exists('dynamic_sidebar')
               || !dynamic_sidebar() ) : ?>
       <ul><li><img src="/wm/whaaaat.jpg" style="position:relative; left: -25px"><br /><br /></li></ul>
       ```
   
 * And here’s the end, where I put the rest of the php code from the help page (
   Although I guess this part isn’t that important to show, since it’s just closing
   the if loop):
 *     ```
       <li><img src="/wm/sb_header_5.png" style="position:absolute; left: 0px"></li>
       <?php endif; ?>
       </ul>
       ```
   
 * Lastly, this is what I have in my functions.php file. I didn’t have a functions
   file earlier, so this is all that’s there:
 *     ```
       <?php
       if ( function_exists('register_sidebar') )
           register_sidebar();
       ?>
       ```
   
 * Am I doing something wrong that I don’t know about? :/ I’m not very experienced
   with php code, so I wouldn’t be surprised if there was something I was doing 
   wrong. If anyone could help me, I’d be inexplicably grateful!! 🙂

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

 *  Thread Starter [Linda](https://wordpress.org/support/users/imprefectlin/)
 * (@imprefectlin)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/widgetizing-help/#post-1527653)
 * Anyone? D: I’d really like to get the sidebar “Widgetized”.
 *  [zanzaboonda](https://wordpress.org/support/users/zanzaboonda/)
 * (@zanzaboonda)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/widgetizing-help/#post-1527760)
 * Hi imprefectlin,
 * This is my very first time doing this to and I literally spent hours agonizing
   over this very issue. What (I think) finally did it for me, and I know this makes
   no sense, is I added the
 *     ```
       <?php endif; ?>
       ```
   
 * tag underneath the php function so it read like this:
 * `<div id=”sidebar”>
    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar()):?
   > <?php endif; ?> <div class=”title”>About</div> <p>This is my blog.</p> <div
   class=”title”>Links</div>
    - [Example](http://example.com)
 * <?php endif; ?>
    </div>
 * I read this on some other website. But then I got an error saying that the endif
   was unexpected. So I deleted it and then, oddly, it worked.
 * This is completely illogical so I imagine something else had to be going on but
   that’s when it seemed to work for me.
 * I hope this helps. Otherwise I have no idea. lol
 * Best wishes,
    Kristen
 *  [zanzaboonda](https://wordpress.org/support/users/zanzaboonda/)
 * (@zanzaboonda)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/widgetizing-help/#post-1527761)
 * Man that was ugly. here’s how it should have looked:
 *     ```
       <div id="sidebar">
       <?php if ( !function_exists('dynamic_sidebar')
               || !dynamic_sidebar() ) : ?>
       <?php endif; ?>
        <div class="title">About</div>
        <p>This is my blog.</p>
        <div class="title">Links</div>
        <ul>
         <li><a href="http://example.com">Example</a></li>
        </ul>
       </div>
       ```
   
 * Let’s hope that works this time!
 *  Thread Starter [Linda](https://wordpress.org/support/users/imprefectlin/)
 * (@imprefectlin)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/widgetizing-help/#post-1527779)
 * Thanks for trying to help me! You’re the only one so far, obviously, haha.
 * Unfortunately I couldn’t get mine to work with the technique you used…but thanks
   for sharing it! I’ll just keep looking I suppose.

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

The topic ‘Widgetizing help!!’ is closed to new replies.

 * 4 replies
 * 2 participants
 * Last reply from: [Linda](https://wordpress.org/support/users/imprefectlin/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/widgetizing-help/#post-1527779)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
