Tag Archives: action

relatedposts

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.

Continue reading

headerexample

Modifying Headers From a TwentyTen Child Theme

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.

Continue reading

jquery

Optimize Your Site by Including Google’s JQuery Library

I just finished a small overhaul of the twentyten theme, using my child theme.  Just a few things I wanted changed to start with.  So the next articles I write will cover all of that.  How to do some real basic customizing.  We’ll change the header size, add a background to widgets, widen the theme, etc.  But the first thing I did, which is something I always do with my themes is to boot WordPress’ JQuery library in favour of Google’s.  Here’s the how and why.

Continue reading

2010icons

Adding Content Under Your Post in a TwentyTen Child 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.

Continue reading