$value ) { if ( 'tag' === $value ) { unset( $classes[ $key ] ); } } return $classes; } } // Filter custom logo with correct classes. add_filter( 'get_custom_logo', 'c9_change_logo_class' ); if ( ! function_exists( 'c9_change_logo_class' ) ) { /** * Replaces logo CSS class. * * @param string $html Markup. * * @return mixed */ function c9_change_logo_class( $html ) { $html = str_replace( 'class="custom-logo"', 'class="img-fluid navbar-brand c9-custom-logo"', $html ); $html = str_replace( 'class="custom-logo-link"', 'class="navbar-brand custom-logo-link c9-custom-logo"', $html ); $html = str_replace( 'alt=""', 'title="Home" alt="logo"', $html ); return $html; } } if ( ! function_exists( 'c9_post_nav' ) ) { /** * Display navigation to next/previous post when applicable. */ function c9_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; } ?> $value ) { $new_sizes[ $value ] = $value; } // This preserves the labels in $sizes, and merges the two arrays $new_sizes = array_merge( $new_sizes, $sizes ); return $new_sizes; } } add_filter( 'image_size_names_choose', 'c9_display_image_size_names_muploader', 11, 1 ); /** * Add logo to WordPress Admin Login */ function c9_login_logo() { $c9_logo_id = get_theme_mod( 'custom_logo' ); $c9_logo_image = wp_get_attachment_image_src( $c9_logo_id , 'full' ); if ( !empty($c9_logo_id) ) { // logo has been uploaded $cortex_logo_image = $c9_logo_image[0]; } else { $cortex_logo_image = get_template_directory_uri() . '/assets/images/c9-black-text-logo.svg'; } ?>