Want to change my custom logo link WordPress? Add the below code in your activated the theme’s functions.php file or site specific plugin.
1 2 3 4 5 6 7 8 9 10 11 12 | function wecodeart_com() { $custom_logo_id = get_theme_mod( 'custom_logo' ); $html = sprintf( '<a href="%1$s" class="custom-logo-link" rel="home" itemprop="url">%2$s</a>', esc_url( 'www.google.com' ), wp_get_attachment_image( $custom_logo_id, 'full', false, array( 'class' => 'custom-logo', ) ) ); return $html; } add_filter( 'get_custom_logo', 'wecodeart_com' ); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.