0

Sorry for this dummy question...

There is the get_bloginfo() function to get the Site title

I want the logo of the site... Is there a function for that?

get_bloglogo();
get_blogimage();

Nothing work...

1 Answer 1

1

Setting up theme logo with custom size in functions.php :

function theme_prefix_setup() {

    add_theme_support( 'custom-logo', array(
        'height'      => 100,
        'width'       => 400,
        'flex-width' => true,
    ) 
);

}
add_action( 'after_setup_theme', 'theme_prefix_setup' );

Output custom logo:

function theme_prefix_the_custom_logo() {

    if ( function_exists( 'the_custom_logo' ) ) {
        the_custom_logo();
    }

}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.