', esc_url( get_bloginfo( 'pingback_url' ) ) ); } } add_action( 'wp_head', 'bam_pingback_header' ); /** * Add a custom excerpt length. */ function bam_excerpt_length( $length ) { if( is_admin() ) { return $length; } $custom_length = get_theme_mod( 'bam_excerpt_length', 25 ); return absint( $custom_length ); } add_filter( 'excerpt_length', 'bam_excerpt_length', 999 ); /** * Changes the excerpt more text. */ function bam_excerpt_more( $more ) { if ( is_admin() ) { return $more; } return ' … '; } add_filter( 'excerpt_more', 'bam_excerpt_more' ); /** * Changes tag font size. */ function bam_tag_cloud_sizes($args) { $args['smallest'] = 10; $args['largest'] = 10; return $args; } add_filter('widget_tag_cloud_args','bam_tag_cloud_sizes'); /* * Add support for responsive videos using fitvids jquery library. */ if ( ! function_exists( 'bam_responsive_video' ) ) : function bam_responsive_video( $html, $url, $attr, $post_ID ) { return '