Here’s a quick little tidbit for you. I was recently working on a few small things to make my site load a bit faster, and I was digging through all my scripts and styles that load. I noticed that the scripts and styles for the bbPress 2.x plugin and the bbPress Post Toolbar plugin loaded on every page. Here’s a quick fix to load them only on an actual bbPress page.
Category Archives: Hooks
Overhauling WordPress’ Login Screen
NOTE: This tut is not longer applicable (as of WP 3.3). I will try to get an updated tutorial on here very soon.
Just for fun, I decided I might like to completely overhaul my WordPress login screen. Sure it’s simple to swap out the logo, or maybe change the background colour. Maybe even use a plugin to change some stuff up. But I wanted to overhaul it all, strip it down and start over. Let’s see what I stumbled through today!
Add a Login Logout Link to Only One Specific Menu
A while back we had a nice little post one here about how to add a login/logout link to your nav menu. I recommend reading that through first if you haven’t before. It’ll get you up to speed and ready for this next tidbit of information. Today we will expand on that idea, with a login/logout link added to only one menu, with a referrer redirect! I’ll explain it all next.
Additional Colour Schemes for Your TwentyEleven Child Theme
I’ve wanted to add an additional colour scheme to my child theme here on VoodooPress since the twentyeleven theme first came out in it’s very early stages. I had pecked around at it from the start, but the code kept changing in the early days. After that I got pretty busy, and haven’t been able to revisit the idea until now. With a little bit of help from Alchymyth and Zeaks I’ve got a new colour scheme set up on here. I haven’t done anything with it yet, but the foundation is in place. Let’s take a look at how to add some additional colour schemes to your 2011 child theme.
Adding and Removing Default Headers in TwentyEleven
After helping someone through some issues with adding and removing the default headers in twentyeleven, I thought that would be a great idea for our next tutorial. So we are going to cover adding and removing default headers to the twentyeleven theme. The techniques are the same as with twentyten, so keep reading if you are using that one. We will also look into how to set one of your headers as the default as well. This is pretty simple for you, let’s dig in!
Add a Widget Area Under Your First Post, Great For Ads or Pictures
I’m always experimenting with VoodooPress. This time I was looking to place a widget area under my first post. Personally I was looking to experiment with ad placement. I’m not sure if I’m sold on this location or not. But if I change my mind, this widget area could be useful for so many other things like images, or recent/popular post thumbnails. Let’s take a look at adding this widget area.
Adding Meta Boxes to Your Post Screen
So yesterday we briefly went over custom fields in this article. Today we are going to expand on that with some meta boxes. Meta boxes are really just a fancy way to input custom fields. They are less confusing for you and anyone else using your theme, as they can prompt for exactly what is needed. These can be text boxes, text areas, check boxes, etc. It’s up to you how you implement them. I only recently started using meta boxes, but I love them. Let’s take a look at how to use them.
Adding Related Posts Links to a Twenty Ten Child Theme in Functions.php
I think a nice feature to have in a theme is a list of related posts on the single post view. It gives the reader another way to find your content. We are going to use the same method we used before for adding content under a post. This way you can just add this into your functions.php, once again keeping things simple so we don’t have to modify any parent theme templates.
Display a Thumbnail in Your Admin Panel Post List
If you followed along yesterday, we set up a new thumbail size to be used in our admin panel. I find this a handy feature because I like to be able to see things. It helps jog my memory on each post. Besides that, it’s just plain cool. Let’s take a look how to add our new image size into the admin panel posts list.
Add Image Size in a Twenty Ten Child Theme
I’ve seena few people stumble on this site searching for a way to add a featured/thumbnail image size to their child theme. This is something I needed to do recently, so we will take a look at it. This is also in preparation for tomorrows article where we will add a thumbnail image to the post list page in the admin panel. If we don’t create a new image size, the default header image size gets used, that obviously looks terrible in the list of posts on the admin side. We need nice little thumbnails. Here’s how to do it: