Google recently let their +1 button loose upon the masses. I figured it wouldn’t be too hard to implement it here on VoodooPress. We already have everything in place that we need. If you followed along with this tutorial you are already all set up too! If not, check it out. You don’t need to do exactly what we did there, just follow along with the concept. We’re just going to insert the +1 button into the code to display it at the bottom of our posts.
I’ve never made a plugin before. I really never thought I had a need. But recently I changed my way of thinking. So I decided to learn how to make a plugin to display my followers, fans and subscribers in a widget. Now this widget is about as basic as possible. But it’s a starting point. I learned something, and maybe you can too! Let’s take a look at the why and how.
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.
EDIT: I recently found out a better way to add post formats to a Twenty-Ten child theme, scroll to the bottom of the post to check it out!
As we announced yesterday, WordPress 3.1 was released. Hopefully you have all upgraded by now. If not, get to it. Remember to always keep your install up to date with the latest release. Not just for the cool new features, but for security too. Anyway, if you recently upgraded to 3.1, you may be asking yourself the same question as I see others asking. Where are my post formats? WordPress 3.1 promised lots of different post formats, where are they? Let’s answer that question and tell you how to get them going if you don’t have them.
In part of our ongoing series on modifying the twentyten theme we are going to look at the header. You may decide that it’s not quite right for you. Maybe you want to change the size, or add new custom default headers. Well you can do all of that quite easily from your child theme. I widened the theme to suit my taste, which is what lead my down this road. Don’t worry, soon we will cover how to widen the twentyten theme. But for now, let’s look at modifying the header, which leads us to our first look at WordPress’ action after_setup_theme.
Over the weekend I installed Simple Twitter Connect (STC) and Simple Facebook Connect (SFC) here on VoodooPress. They are my favourite plugins for total integration with each service. And out of the box they work great. You can have them just plop the ‘Like’ and ‘Tweet’ buttons under all your posts, and it works, and looks good. But I’m picky. I really only want my buttons manually placed exactly where I want them. I’m using a twentyten child theme I made, and I wanted to insert the buttons only on single post views. But I didn’t want to copy single.php from twentyten to use my own for just this. I prefer to keep the original templates in use from the parent, and place any extra stuff through functions.php whenever possible. I ran across several options, all of which worked in some fashion. So let’s check out various ways to get content added under your post. You can use the techniques here for pretty much any post, I’m just focusing on a twentyten child as that’s what I’m using.
I needed a contact form for VoodooPress. Normally I use cforms. It’s very powerful, but it seemed like too much for a simple form. I decided to give the Contact Form 7 plugin a try this time. I came across a few challenges getting it set up perfectly with my twentyten child theme. But it was a cool learning experience. Let’s take a look at what I did. A lot of this information may help you on themes besides twentyten as well, it’s just focused on that.
This post has been updated!! Check out the end of the post for newer code.
I’ve seen a few people around the forums looking to add a login link to their navbar. It’s actually really simple to do with a little block of code in functions.php. A lot of people also are looking to have users redirect to the homepage on login, rather than be sent to the dashboard. We can take care of all of that with this block of code.
I have seen quite a few searches come through lately for get_template_part. Seems like a lot of folks don’t know what it’s for, what it does, or how to use it in their WordPress theme. When it was introduced with WordPress version 3.0 I wasn’t all that excited. I didn’t see a need for it. I was kind of set in my ways. I liked how I did things. But after looking into it for a while, I discovered it’s a powerful and useful tool. Let’s take a look at what it does for you.