for the 600 x 100 image:
You can change the names and dimensions to whatever
you like. Enjoy!
*/
add_filter( 'image_size_names_choose', 'bigpix_custom_image_sizes' );
function bigpix_custom_image_sizes( $sizes ) {
return array_merge( $sizes, array(
'bigpix-thumb-600' => '600px by 150px',
'bigpix-thumb-300' => '300px by 100px',
'slider-image' => '1280px by 500px'
) );
}
/*
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.
*/
/************* ACTIVE SIDEBARS ********************/
// Sidebars & Widgetizes Areas
function bigpix_register_sidebars() {
register_sidebar(array(
'id' => 'sidebar3',
'name' => __( 'Homepage Menu Widget Area', 'bigpixtheme' ),
'description' => __( 'The Menu Widget Area.', 'bigpixtheme' ),
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '',
));
register_sidebar(array(
'id' => 'sidebar1',
'name' => __( 'Posts Menu Widget Area', 'bigpixtheme' ),
'description' => __( 'The Posts Menu Widget Area.', 'bigpixtheme' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
));
register_sidebar(array(
'id' => 'sidebar2',
'name' => __( 'Page Menu Widget Area', 'bigpixtheme' ),
'description' => __( 'The Page Menu Widget Area.', 'bigpixtheme' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
));
register_sidebar(array(
'id' => 'sidebar5',
'name' => __( 'Archive Menu Widget Area', 'bigpixtheme' ),
'description' => __( 'The Archive Menu Widget Area.', 'bigpixtheme' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
));
register_sidebar(array(
'id' => 'sidebar4',
'name' => __( 'Footer Widget Area', 'bigpixtheme' ),
'description' => __( 'The Footer Widget Area.', 'bigpixtheme' ),
'before_widget' => '',
'after_widget' => '
',
'before_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', 'bigpixtheme' ),
'description' => __( 'The second (secondary) sidebar.', 'bigpixtheme' ),
'before_widget' => '',
'after_widget' => '
',
'before_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 bigpix_comments( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment; ?>
$depth, 'max_depth' => $args['max_depth']))) ?>
/mi','',$output); } function author_excerpt() { $text_limit = 50; //Words to show in author bio excerpt $read_more = "Read more"; //Read more text $end_of_txt = "..."; $name_of_author = get_the_author(); $url_of_author = get_author_posts_url(get_the_author_meta('ID')); $short_desc_author = wp_trim_words(strip_tags( get_the_author_meta('description')), $text_limit, $end_of_txt.'
'.$read_more .''); return $short_desc_author; } function catch_that_image() { global $post, $posts; $first_img = ''; ob_start(); ob_end_clean(); $transformed_content = apply_filters('the_content',$post->post_content); if( $output = preg_match_all('/