How to add a Custom Theme Logo in WordPress
Here i wil help you to adding a Custom Logo to your WordPress website theme. This is the best way to get your logo in WordPress site.
A website’s logo is a crucial branding tool. That why most websites place it in the top-left corner. When visitors visit a webpage, this is the first place their eyes are drawn to and add this code :
#header.php
$logo = get_theme_mod( 'custom_logo' ); //Retrieve theme modification value for the current theme.
$image = wp_get_attachment_image_src( $logo , 'full');
print_r($image);
<img src="<?php echo $image[0]; ?>" alt="">