$value ) { if ( 'tag' == $value ) { unset( $classes[ $key ] ); } } return $classes; } } // Filter custom logo with correct classes. add_filter( 'get_custom_logo', 'understrap_change_logo_class' ); if ( ! function_exists( 'understrap_change_logo_class' ) ) { /** * Replaces logo CSS class. * * @param string $html Markup. * * @return mixed */ function understrap_change_logo_class( $html ) { $html = str_replace( 'class="custom-logo"', 'class="img-fluid"', $html ); $html = str_replace( 'class="custom-logo-link"', 'class="navbar-brand custom-logo-link"', $html ); $html = str_replace( 'alt=""', 'title="Home" alt="logo"', $html ); return $html; } } /** * Display navigation to next/previous post when applicable. */ if ( ! function_exists( 'understrap_post_nav' ) ) { function understrap_post_nav() { // Don't print empty markup if there's nowhere to navigate. $previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( ! $next && ! $previous ) { return; } ?> %link', _x( ' %title', 'Previous post link', 'understrap' ) ); } if ( get_next_post_link() ) { next_post_link( '%link', _x( '%title ', 'Next post link', 'understrap' ) ); } ?> ' . "\n"; } } } add_action( 'wp_head', 'understrap_pingback' ); if ( ! function_exists( 'understrap_mobile_web_app_meta' ) ) { /** * Add mobile-web-app meta. */ function understrap_mobile_web_app_meta() { echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; } } add_action( 'wp_head', 'understrap_mobile_web_app_meta' );