Widgets are actually pretty damn cool
I used to think they were stupid, which is why I hard coded the sections pulling data for this blog. If you read my last post though, you will know I am building a theme for work and I had to use widgets. I gotta say, these things are handy. Now the client will be able to stick whatever he wants wherever he wants it. I did run into a problem though, which took me a while to solve.
I needed to get a widgetized sidebar onto a specific page, without showing up on any of the other pages. Luckily it was the blog page, which uses the index.php file within your theme folder, and not something where I would have to create a custom page for. I started the theme off of ‘TwentyTen’, and pretty much deleted all the content in all the theme files, meaning all I had left was the php that calls the header, footer, and sidebar. The function file remained the same other than adding the code to call jQuery from Google’s server, and renaming all the function names from ‘twentyten’ to ‘mythemename’ (not posting what it was really called, because it is irrelevant).





