WordPress Notebook

this is my new cheat sheet because I forget things alot.  If it’s useful for you, awesome.

Change Height of Custom Header Image in WordPress 2011 Theme

The default width and height for the header images in the 2011 theme is1000 x 288. This is set in the funcitons.php file at lines 122 and 123. If you can’t find it, search the functions file for the following code:

// The height and width of your custom header.
// Add a filter to twentyeleven_header_image_width and twentyeleven_header_image_height to change these values.
define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyeleven_header_image_width', 1000 ) );
define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyeleven_header_image_height', 288 ) );

You can change the width and height here and bingo. You’re done.

Adding Custom Post Formats to a WordPress Theme

If your theme supports custom post formats, you'll see this in the Add New Post dash.

If a theme does not support custom post formats (the new 2012 theme from WordPress does), you just need to add one line of code to your theme’s functions.php file.

If you are using the twentyeleven theme, the required PHP for post formats is included in the functions.php at around line 47. It looks like this:

add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image' ) );

This single line of code produces the post format options you can see when you go to your Dashboard to create a new post. You’ll see the CFP options in the right column.

If you don’t see these, add the above lines of code into your functions.php file, which can be found inside your theme folder: wp-content/themes/nameofyourtheme/functions.php. Make a backup of the functions.php file before making any changes.

Once you’ve added this you’ll see the custom post formats next time you log in.

Add a new post and select a post format and have a look at how it displays. You’ll likely need to style the post formats and I’m in the middle of writing a tutorials on styling CFPs with CSS. Hoping to get that finished very soon.

Moving WordPress To A New Server Or Host

After several frustrating attempts, I stumbled across a great tutorial which in my mind, this is THE definitive How To. It worked perfectly.  Visit page.

Other Notes

My Child Theme “Yes, I DID do This Right” Note:

/*
Theme Name: grovesdesign
Description: Child theme for groves design based on twenty eleven theme
Author: karen groves
Template: twentyeleven
*/

@import url(“../twentyeleven/style.css”);

Important : Both the Template and @import url path MUST match the name of the Parent theme.

Themes I Like to use for Child Themes

ThrillingTheme

Press Play

TwentyEleven