for the 600 x 150 image: You can change the names and dimensions to whatever you like. Enjoy! */ /* add_filter( 'image_size_names_choose', 'bones_custom_image_sizes' ); function bones_custom_image_sizes( $sizes ) { return array_merge( $sizes, array( 'bones-thumb-600' => __('600px by 150px'), 'bones-thumb-300' => __('300px by 100px'), ) ); } */ /* The function above adds the ability to use the dropdown menu to select the new images sizes you have just created from within the media manager when you add media to your content blocks. If you add more image sizes, duplicate one of the lines in the array and name it according to your new image size. */ /************* THEME CUSTOMIZE *********************/ /* A good tutorial for creating your own Sections, Controls and Settings: http://code.tutsplus.com/series/a-guide-to-the-wordpress-theme-customizer--wp-33722 Good articles on modifying the default options: http://natko.com/changing-default-wordpress-theme-customization-api-sections/ http://code.tutsplus.com/tutorials/digging-into-the-theme-customizer-components--wp-27162 To do: - Create a js for the postmessage transport method - Create some sanitize functions to sanitize inputs - Create some boilerplate Sections, Controls and Settings */ function bones_theme_customizer($wp_customize) { // $wp_customize calls go here. // // Uncomment the below lines to remove the default customize sections // $wp_customize->remove_section('title_tagline'); // $wp_customize->remove_section('colors'); // $wp_customize->remove_section('background_image'); // $wp_customize->remove_section('static_front_page'); // $wp_customize->remove_section('nav'); // Uncomment the below lines to remove the default controls // $wp_customize->remove_control('blogdescription'); // Uncomment the following to change the default section titles // $wp_customize->get_section('colors')->title = __( 'Theme Colors' ); // $wp_customize->get_section('background_image')->title = __( 'Images' ); } add_action( 'customize_register', 'bones_theme_customizer' ); /************* ACTIVE SIDEBARS ********************/ // Sidebars & Widgetizes Areas function bones_register_sidebars() { register_sidebar(array( 'id' => 'sidebar1', 'name' => __( 'Sidebar 1', 'bonestheme' ), 'description' => __( 'The first (primary) sidebar.', 'bonestheme' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); /* to add more sidebars or widgetized areas, just copy and edit the above sidebar code. In order to call your new sidebar just use the following code: Just change the name to whatever your new sidebar's id is, for example: register_sidebar(array( 'id' => 'sidebar2', 'name' => __( 'Sidebar 2', 'bonestheme' ), 'description' => __( 'The second (secondary) sidebar.', 'bonestheme' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); To call the sidebar in your template, you can just copy the sidebar.php file and rename it to your sidebar's name. So using the above example, it would be: sidebar-sidebar2.php */ } // don't remove this bracket! /************* COMMENT LAYOUT *********************/ // Comment Layout function bones_comments( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; ?>
>
' ); */ ?> %1$s %2$s', 'bonestheme' ), get_comment_author_link(), edit_comment_link(__( '(Edit)', 'bonestheme' ),' ','') ) ?>
comment_approved == '0') : ?>

$depth, 'max_depth' => $args['max_depth']))) ?>
is added by WordPress automatically ?>