- @mattwiebe FYI, just approved latest revision of The Erudite: http://themes.trac.wordpress.org/ticket/1849#comment:3 Cheers! #
- @MayorSlay ah, so *they* are the ones responsible for all the fraudulent midnight votes out of STL city last night? in reply to MayorSlay #
- @STLconservative didn't Obama spend a lot of time in DE, campaigning for Coons, too? in reply to STLconservative #
- @DittoheadSara @VickyHartzler I'm happy for y'all! I tried to help @Hamlin4Congress, but am stuck w/the Pelosi Clay-Puppet for another 2 yrs in reply to DittoheadSara #
- @presjpolk @jeffemanuel it was always the case that the opportunity for *meaningful* R senate majority would come in 2012, not 2010. in reply to presjpolk #
Author: Chip Bennett
-
Twitter Updates for 2010-11-04
-
Twitter Updates for 2010-11-03
- @DLoesch Vicky Hartzler next? in reply to DLoesch #
- @gatewaypundit In other news, STL city just came in, and gave Lapdog Russ a 14K vote lead. Can JeffCo make up for it? in reply to gatewaypundit #
- @gatewaypundit @DLoesch Ed is back in the lead! 89.7K to 87.5K with 282/311 reporting! in reply to gatewaypundit #
- Given the way the elections have run today, Robin Carnahan was as #epic #fail as SOS as she was as wannabe Senate candidate. #
- Buh-bye, Lame Duck Session! Mark Kirk wins Illinois! #
- Go John Lamping! My new state senator! http://bit.ly/d7c4Te #
-
Twitter Updates for 2010-11-02
- @keder @owillis "DC Metro Ridership": last, anecdotal resort of those desperate to prove delusional beliefs about relative event attendance in reply to keder #
- @owillis @keder no credible evidence/study correlates DC Metro ridership to DC event attendance. It's called *anecdotal* for a reason. in reply to owillis #
- @johnboehner we're giving GOP the House. Give us reason to let you keep it in 2012. Legislate, rather merely just campaign, as conservatives in reply to johnboehner #
- @keder @owillis I forgot; we're working on an @mmfa curve. A better question: how many DC Metro riders will be sipping Slurpees tomorrow? in reply to keder #
- @presjpolk there's a jihad? Really? Do the Used Game Sale jihadists not understand the concept/legality of Right of First Sale Doctrine? in reply to presjpolk #
- @owillis not even metaphorically? in reply to owillis #
- @presjpolk that will just take someone challenging – either through the courts, or by reverse-engineering in reply to presjpolk #
- @owillis @SCMcDonnell @keder "within the Margin of Error" != "statistical dead heat". WA-Sen is a statistical dead heat. NV-Sen is not. in reply to owillis #
- @DinaFraioli @KeyHouseRaces @mikeallen wrt likelihood of pickup, I would rate WV as #9 WA as #10 but those are def. the 4 key races. in reply to DinaFraioli #
- Oenology: How To Create a Child Theme and a Custom Page Template – http://bit.ly/arN0yX #wordpress #
- @dmataconis there is no "trust" – except, maybe "trust, but verify". We'll be reminding them they have to earn the right for support in 2012 in reply to dmataconis #
- I won't be able to watch the #Colts game tonight, b/c some things are just more important than football. Election day tomorrow, up at 3:30AM #
- @pwilson24 please tell everyone in the chat hi for me, Phil. Election tomorrow, so I've got to turn in early tonight. in reply to pwilson24 #
- @18to88 @LovinBlue apparently the Colts are replacing the defensive secondary with the tertiary – or the quaternary in reply to 18to88 #
- @pwilson24 I'm a lowly Election Supervisor. It's my job to make sure that, whatever the returns are, they're accurate! in reply to pwilson24 #
- @NMRgirl thankfully, I've got lots of y'all to carry the load for me tonight! 😉 in reply to NMRgirl #
- @SarahPalinUSA with all due respect: it's not. It's but the first step of several that need to be taken, over several years. in reply to SarahPalinUSA #
- Touchdown! 7-0 #Colts I'm off to bed. Everyone go vote tomorrow (and prayers for Gary Burgess). #
-
Oenology: How To Create a Child Theme and a Custom Page Template
This tutorial will explain how to use the Child Theme concept to customize a WordPress Theme. Specifically, this tutorial will explain how to create a Child Theme to hold future-proof Theme customizations, and then will explain how to build a custom Page template within that Child Theme. This tutorial is based on the Oenology Theme.
A brief background: recently, a user of the Oenology Theme contacted me, asking how to create a custom Page template. Specifically, this user wanted to have content of a particular Page display in a single, wide column with no sidebars. This customization is quite easily implemented using a Child Theme, as I will explain.
Creating a Child Theme
The first step is to create a Child Theme.
In its simplest form, a Child Theme doesn’t have to be anything more than a single file: style.css. While some Child Themes are much more complex, all start with this one file. WordPress will use two critical pieces of information from the Child Theme’s style.css file to do all of the rest of the heavy lifting: a header tag and a file import.
Let me show you how easy it is. In your text editor of choice, paste the following into a blank file, and save it as “style.css”:
/*
Theme Name: Oenology Example Child Theme
Description: Example Child Theme based on Oenology
Template: oenology
Version: 1.0
*//*
THIS MUST COME FIRST!
Inherit styles from oenology parent theme.
*/
@import url(“../oenology/style.css”);Congratulations! You just created your first (fully functional) Child Theme!
Here’s how it works.
First, this “header tag” tells WordPress that the Theme is a Child Theme, and to use all of the template files from the indicated Parent Theme, if they are not found in the Child Theme:
Template: oenology
In other words, if we don’t add an “index.php” template file to our Child Theme, WordPress will use the “index.php” template file from Oenology.
Second, this file-import tells the style sheet to import all of the styles as defined in the Parent Theme, Oenology:
@import url(“../oenology/style.css”);
Due to the way that inheritance works with CSS, any styles we define in our stylesheet that come after this file-import call will supercede the styles defined in the Parent Theme. (Note: the exact nature of CSS rules regarding specificity are outside the scope of this tutorial.)
And that’s it! That’s all the information that must be provided for a working Child Theme.

The Oenology Example Child Theme listed in the Themes section of the WordPress Admin area At this point, you could simply FTP your newly created style.css file to
\wp-content\themes\oenology-example-child-theme\, and you’ll see your Child Theme appear under Themes in your WordPress admin.You could activate your Child Theme at this point, and it would work (it would just look and act exactly the same as its Parent Theme, Oenology, at this point, because we’ve not yet added any customizations).
But, let’s make our first customizations first.
Creating a Custom Page Template
Now the real fun begins! Let’s create our custom Page template.
Start by making a copy of the “page.php” template file from the Oenology Theme. Since the custom template we want to create is a wide, one-column page, we will name our copy “page-one-column-wide.php”.Important! At this point, we are done with the Oenology Theme. Be sure not to make any changes to the Oenology Theme template files. Likewise, do not save your Child Theme’s “style.css” file or any other file in the Oenology Theme directory!
Save “page-one-column-wide.php” in the same directory where you saved “style.css”, and then open it in your text editor of choice.
We will make three primary changes:
- Change the Template name.
- Add a custom class to the HTML
<body>tag. - Remove the two sidebars.
Changing the Template Name
Look for the following at the very top of the file:
/*
Template Name: Page
*/This tag tells WordPress what this particular Template file is. Since we are creating a new, custom Template, we need to rename this tag. (Whatever we put here will be displayed in the Add Page screen, as we’ll see later.) Change this tag to the following:
/*
Template Name: Page One-Column Wide
*/Adding Custom Class to the HTML
<body>tagNext, look for the following code (immediately following the above code):
<body id=”page” <?php body_class(); ?>>
Modify it as follows:
<body id=”page” <?php body_class( ‘page-one-column-wide’ ); ?>>
This change tells WordPress to add the CSS class “page-one-column-wide” to the HTML
<body>tag. We will use this CSS class to define our custom style for our template.Removing The Sidebars
Finally, find and delete the following code, starting around Line 53:
<!– Begin Left Column (div#leftcol) –>
<div id=”leftcol”>
<?php
/*
div#leftcol contains the left column content of the three-column layout.
*/
get_sidebar(‘left’);
/*
sidebar-left.php is the left column content. Used in all primary template page types (index.php, single.php, archive.php, search.php, page.php)
For index.php, sidebar-left and sidebar-right both appear to the right of the main content column.
For page.php, sidebar-left is to the left, and sidebar-right is to the right, with the main content column in the center.
*/
?>
</div>
<!– End Left Column (div#leftcol) –>
<!– Begin Right Column (div#rightcol) –>
<div id=”rightcol”>
<?php
/*
div#rightcol contains the right column content of the three-column layout.
*/
get_sidebar(‘right’);
/*
sidebar-right.php is the right column content. Used in all primary template page types (index.php, single.php, archive.php, search.php, page.php)
For index.php, sidebar-left and sidebar-right both appear to the right of the main content column.
For page.php, sidebar-left is to the left, and sidebar-right is to the right, with the main content column in the center.
*/
?>
</div>
<!– End Right Column (div#rightcol) –>Here, we simply remove the code that adds the Sidebars to the template, so that they do not display.
That’s all we need to do with the template file. Save your changes, and we will move on to styling our new Page template.
Defining CSS for Custom Page Template
Once again, open “style.css” in your text editor of choice, and look for the following line:
@import url(“../oenology/style.css”);
Be sure to make all additions beneath this line. This rule is very important.
Beneath this line, add the following style definitions:
#page.page-one-column-wide #extent #main {
width: 1000px;
margin-left:0px;
}
#page.page-one-column-wide #extent #main img {
max-width: 990px;
width: auto;
height: auto;
}The first rule changes the width and margin of the main content area, so that it takes up all the space made available by the removal of the sidebars. The second rule ensures that any pictures that are added to the content will take up the full available width.
At this point, we’re done make edits to Theme template files. Now the fun begins: using our new Child Theme, and custom Page Template!
Using the Custom Page Template
Using whatever method you prefer, upload the two files, “style.css” and “page-one-column-wide.php” to the following directory:
\wp-content\themes\oenology-example-child-theme\
As demonstrated previously, the Child Theme will now appear in the Themes section of the WordPress Admin area, and can be activated like any other Theme.
Once you activate the Child Theme, you won’t notice any differences whatsoever on the front end:
Why? Because you’ve not made any changes to any of the default content, templates, or styles. You will need to tell WordPress to use your Custom Page Template for a Page in order to see the changes.
So, either create a new Page, or else edit the Page for which you want to use the custom template. Look for the “Template” field in the “Page Attributes” metabox (click to enlarge):
The drop-down box lists all of the possible Page templates that can be applied to the Page. Look for our new custom Template, “Page One Column Wide” (remember, this is the same name we used in the “Name” header tag in the “page-one-column-wide.php” template file):
Select the custom template file, and then save the Page. Now, when you view the Page, you should see the custom template applied to it:
And that’s it! You’ve just created a Child Theme, and used it to define a custom Page Template! Here are the before and after screenshots, for comparison:


I’ve also uploaded a ZIP file containing the example files “style.css” and “page-one-column-wide.php” used in this tutorial: oenology-example-child-theme.zip. Feel free to use however you’d like!
If you have any questions, please don’t hesitate to ask. Though, I would prefer that you ask them in the Oenology Support Forum at wordpress.org, where official support for the Oenology Theme is provided, rather than in the comments.
Good luck, and happy Child Theming!
-
Twitter Updates for 2010-11-01
- My daughter says Little Lamb is a Colts fan! http://twitpic.com/32o6lu #
- Theme Review Weekly Stats: 31 Oct 10 – http://bit.ly/cbFaDV #wordpress #
- @bccohan it's all about the FLUTE SOLO! in reply to bccohan #
- @keder I hope they hold on to the lead. I have a couple of co-workers who are big #nfl #lions fans. in reply to keder #
- Why wasn't that Brady throw into the dirt behind his OL not intentional grounding? #
- In other news: the Vikings secondary are terrible. They just got schooled like a Democrat on November 2nd. #
- Weekend Project #1 Organize kitchen storage area http://twitpic.com/32qpqc #
- Weekend Project #2 rearrange/add another bookshelf to basement library http://twitpic.com/32qrrw #
-
Theme Review Weekly Stats: 31 Oct 10
Each week, I publish various statistics to measure the Theme Review process for Themes submitted for inclusion in the Official WordPress.org Theme Repository (any inaccuracies are due to manual counting).
Here’s how we’ve done (improved/disimproved/maintained) over the week ending 30 Oct 2010:
Compared with last week:
- The # of tickets closed decreased. (92 vs 130)
- The review queue increased. (44 vs 34)
- The oldest open ticket age (days) increased. (12 vs 6)
- The average time to close tickets (days) decreased. (1.5 vs 2.4)
- The average age of open tickets (days) increased. (3.0 vs 1.6)
- The % of tickets closed as approved decreased. (25% vs 32%)
- The # of reviewers decreased. (6 vs 11)
This Week (above/below/at goal):
Closed Tickets:
- # Tickets Opened: 108
- # Tickets Closed: 92
- # Approved: 18
- # Not-Approved: 55
- # Newer-Version-Uploaded: 19
- % Closed Tickets Approved: 25%
- Average Days to Close: 1.5
Open Tickets:
- # Tickets Open: 44
- Oldest: 12 days
- Average Age: 3.0 days
This Week’s Top Reviewers (# Tickets Closed):
- chipbennett: 37
- chris@thematic: 17
- cais: 14
- Fingli: 9
- tinkerpriest: 3
- pross: 2
Historical trend charts have been updated.
-
Twitter Updates for 2010-10-31
- @bccohan gotta love the smell of AstroTurf in the morning! in reply to bccohan #
- @michellemalkin @senatus I think Senators Kirk and Raese will have something to say aout that. in reply to michellemalkin #
- @keder they actually get paid for that? Even without a photo of Glen Beck in a ladybug costume? in reply to keder #
- @dmataconis did Perez Hilton ghost-write that editorial? It uses "logic" that can only make sense to someone like him. in reply to dmataconis #
- @bccohan Stewart has a bigger bus budget than the race-baiters did in reply to bccohan #
- @rpagesc @colecamp @john_mcguirk would those people really be doing canvassing anyway? They just took a free trip to DC. in reply to rpagesc #
- @bccohan write-over of mis-spelling of attempted wit on protest sign FTW! in reply to bccohan #
- @mamaswati "Can You Fhear Us Now?" If that were the Tea Party, we'd be hearing non-stop about implied Right-Wing violence. in reply to mamaswati #
- @colecamp @rpagesc @john_mcguirk I honestly doubt it. They just took a free trip to DC for a big, televised party, IMHO. in reply to colecamp #
- @OneFineJay so there's a new WP/Thesis drama unfolding, eh? Shouldn't you be at #fearforsanity right now, instead, anyway? in reply to OneFineJay #
- @dmataconis and that "restores sanity" how, exactly? (And why do they need a big rally to do what they do every day on their shows?) in reply to dmataconis #
- What Left-wing threats of violence? Sums up #fearforsanity in two sign slogans: "Can You fHear Us Now?" & "Death to Right-Wing Extremists". #
- @OneFineJay oh, you're at WCPhilly? Have a good time man! (Even though you're missing the ironically wacko fun at the "rally".) in reply to OneFineJay #
- @keder that juxtaposes nicely with "saying no to fear mongers on the left and on the right", eh @dmataconis? in reply to keder #
- @dmataconis @RalstonFlash 156K R votes (turnout 38%), 163K D votes (turnout 35%), 60K I votes (breaking 55% – 38% for Angle). I'll take it! in reply to dmataconis #
-
Twitter Updates for 2010-10-30
- Alaskans prove they're smarter than crooked State Supreme Court Justices. Over 100 write-in candidates now on list: http://bit.ly/dfNCwO #
- @OneFineJay esp since another "Lisa M." is on the list. Beautiful. Buh-bye, Murkowski (er, I mean "M^*#$#gjhwski", official ballot spelling) in reply to OneFineJay #
- @Skitzzo @MarkReardonKMOX if only one of those 3.5MM jobs were to belong to Robyn Hamlin in 5 days… in reply to Skitzzo #
- Desperation, thy name is Democrat. "John Lamping Hates Puppies" FTW! http://twitpic.com/31zx2q #
- @OneFineJay look what I got in the mail today http://twitpic.com/31zx2q (Lamping is the R cand for my state senate district) in reply to OneFineJay #
- @pwilson24 I like the news about Angerer getting some looks at OLB. I think somebody suggested that a few weeks ago… 😉 #
-
Twitter Updates for 2010-10-29
- @jasonberggren dude, I didn't know you were on Twitter! #
- @pearsonified @GrantGriffiths uh-oh; it's been a minute since anyone's brought up The-TLA-that-must-not-be-named… 😉 in reply to pearsonified #
- @pearsonified was it an issue prior to the current 2.0 revision? Looks kosher now, but I never checked previously. in reply to pearsonified #
- @pearsonified well, you know what I think of such chirping… in reply to pearsonified #
- @pearsonified @GrantGriffiths as long as you commercial guys are able to make license decisions that benefit your business, I'm happy in reply to pearsonified #
- @dmataconis desperate times call for desperate measures, such as polling "respondents": not even registered, much less, likely, voters in reply to dmataconis #
- @flashingcursor that's awesome! in reply to flashingcursor #
- @ewerickson they're right: Tea Party Republican Senators (and the voters who elect them) will be destructive to RINO leadership! in reply to ewerickson #
- @powerlineblog 500 respondents – not even registered, much less, "likely", voters. Worthless poll, not newsworthy. in reply to powerlineblog #
- @davemoyer I'm definitely not prepared – mainly, because I still don't have a working RSS feed link for @WordCast 😉 in reply to davemoyer #
- @mattonomics silly? more like, foolish. The link to the image is right there in the source (and they assume we run their JS to begin with?) in reply to mattonomics #
- Desperation for @Baron_Hill? @INDems pose as conservative Faith and Family Values church org in attempt to smear @ty4c http://bit.ly/byxf83 #
-
Twitter Updates for 2010-10-28
- @hostagehoosier happy birthday to a fellow Hoosier! Tell @onefinejay to buy you a drink, on me. #
- @wptavern interesting list, but several of the tutorials assume explicitly coded comment markup, rather than use of wp_list_comments() in reply to wptavern #
- @powerlineblog Upton is a RINO. I know. I was "represented" by him when I lived in Kalamazoo. in reply to powerlineblog #
- @wptavern using what method? Explicit markup of comment list rather than wp_list_comments? Yes. Repo-hosted Themes must use wp_list_comments in reply to wptavern #
- @Skitzzo the former, unless Favre is a veritable Wilt Chamberlain in reply to Skitzzo #
- @markjaquith what? you mean you don't like rocking the Orlando Bloom look? in reply to markjaquith #
- @dmataconis I was going to ask about that… in reply to dmataconis #

