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) using these instructions:
http://codex.wordpress.org/Widgetizing_ThemesNo 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!! 🙂
The topic ‘Widgetizing help!!’ is closed to new replies.