Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // CHANGE DEFAULT THUMBNAIL SIZE
- function twentytwelve_setup() {
- set_post_thumbnail_size( 700, 9999 ); // Unlimited height, soft crop
- }
- add_action( 'after_setup_theme', '_twentytwelve_setup', 11 );
- //Override content width (for photo and video embeds)
- $content_width = 700;
- function twentytwelve_content_width() {
- if ( is_page_template( 'page-templates/full-width.php' ) || is_attachment() || ! is_active_sidebar( 'sidebar-1' ) ) {
- global $content_width;
- $content_width = 1090;
- }
- }
- add_action( 'template_redirect', 'twentytwelve_content_width', 11 );
- function twentytwelve_custom_header_setup() {
- $header_args = array(
- 'width' => 1090,
- 'height' => 250
- );
- add_theme_support( 'custom-header', $header_args );
- }
- add_action( 'after_setup_theme', 'twentytwelve_custom_header_setup' );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement