%2$s', esc_url( home_url( '/' ) ), wp_get_attachment_image( $bigseo_custom_logo, 'full', false, array( 'class' => 'custom-logo', ) ) ); return $html; } if ( ! function_exists( 'bigseotheme_the_custom_logo' ) ) { function bigseotheme_the_custom_logo() { if ( function_exists( 'the_custom_logo' ) ) { the_custom_logo(); } } } if ( ! function_exists( 'bigseotheme_the_custom_jumbotron' ) ) { function bigseotheme_the_custom_jumbotron() { if ( is_page() || is_single() ) { if (has_post_thumbnail()) { echo ''; } }elseif(is_home()) { echo ''; } } } function bigseotheme_excerpts_to_pages() { add_post_type_support( 'page', 'excerpt' ); } function bigseotheme_categorized_blog() { if ( false === ( $all_the_cool_cats = get_transient( 'bigseotheme_categories' ) ) ) { $all_the_cool_cats = get_categories( array( 'fields' => 'ids', 'hide_empty' => 1, 'number' => 2, ) ); $all_the_cool_cats = count( $all_the_cool_cats ); set_transient( 'bigseotheme_categories', $all_the_cool_cats ); } if ( $all_the_cool_cats > 1 ) { return true; } else { return false; } } function bigseotheme_category_transient_flusher() { if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { return; } delete_transient( 'bigseotheme_categories' ); } add_filter( 'post_gallery', function( $html, $attr, $instance ) { if( isset( $attr['class'] ) && $class = $attr['class'] ) { unset( $attr['class'] ); $html = sprintf( '', esc_attr( $class ), gallery_shortcode( $attr ) ); } return $html; }, 10 ,3 ); function bigseotheme_defer_parsing_of_js ( $url ) { if (!(is_admin() )) { if ( FALSE === strpos( $url, '.js' ) ) return $url; //return "$url' defer='"; } return $url; } add_filter( 'clean_url', 'bigseotheme_defer_parsing_of_js', 11, 1 );