Here’s a step by step guide to adding a second menu area to a Twenty Twelve child theme. This menu will act the same as the default menu on mobile devices and display below the header area.
I’ve had many questions on how to change the width of the sidebar in Twenty Eleven, I’m going to show how it can be done for both left and right sidebar layouts. My last post on this was a bit confusing, I’ll try to explain it as best I can.
First lets take a look at the layout, it’s easier to understand what you’re doing when you understand the way things work.
I’ve seen this asked alot so, here’s how you can add a logo image to the header area of Twenty Eleven theme by only adding CSS to your theme. It’s not the best way to add a log in all cases but it works pretty well for Twenty Eleven theme.
Well be using a 263x65px logo in the example, you can use this one if you want to try it out. Place it in a folder called images within your child theme.
Here’s a code snippet you might find useful if you ever want to add a message to your comment form to display posting rules or something similar.
We simply create a function that adds a custom message and hooks into the comment form and add it to our functions.php. There are several hooks available for logged in, loggged out and comments closed.
Adding post thumbnails and excerpts to Twenty Eleven theme is not much different than how they would be added to Twenty Ten.
The first step is to create a functions.php file for your child theme if you don’t already have one and add this to it. This adds our own custom size thumbnail of 140px X 140px.
I strongly recommend installing and running Ajax Rebuild Thumbnails plugin after completing this tutorial. It will create a new image size for each featured image. You can uninstall it after it’s finished.
Adding Wp-PageNavi plugin to Twenty Eleven is a bit different than adding it to Twenty ten. The code must be placed into functions.php instead of the loop.
This code will only work with a child theme, you’ll have to modify it to add it straight to Twenty Eleven, but why would you want to do that anyways?