This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Updated and tested with GeneratePressVersion: 2.4.2 **/ | |
/** | |
* Check if logo is svg and output svg code instead of image | |
*/ | |
function generate_construct_logo() { | |
$logo_url = ( function_exists( 'the_custom_logo' ) && get_theme_mod( 'custom_logo' ) ) ? wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), 'full' ) : false; | |
$logo_url = ( $logo_url ) ? $logo_url[0] : generate_get_option( 'logo' ); | |
$logo_url = esc_url( apply_filters( 'generate_logo', $logo_url ) ); |