Very simple just a few lines of code. Instructions here.
That’s it? I read that before I posted, but I didn’t think it’d work.
Yeah that’s it. A quick tip if you want to keep some of your sidebar content intact just add the code after where you want your widgets to start.
OK, so I tried that, but now when I try to put stuff in, it throws an error:
Parse error: syntax error, unexpected $end in /data/c8/nfsn/content/mischif/public/blog/wp-content/themes/Minima Blargh/sidebar.php on line 38
Paste your sidebar code to the pastebin and report back the link.
OK, now I’ve got a related problem. My old, non-widgetized sidebar had things like CSS/XHTML validating utilities, and I want to put them back. Do I make a new small text box and put HTML/PHP in there, or what?
EDIT: The small text box idea worked, but the text does not have the same formatting, plus any PHP in there doesn’t work. Any ideas?
- The topic ‘Widgetizing my Sidebar’ is closed to new replies.