Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author FameThemes

    (@famethemes)

    Hello @meredithcook13,

    The logo link is not an option in any theme, and we also do not support to change logo link. Default, it will handle by WordPress core and always get the current your site URL.

    If you want to change the logo link, please do the following here:
    https://developer.ww.wp.xz.cn/reference/hooks/get_custom_logo/#comment-1695

    Hope it helps!

    Thread Starter meredithcook13

    (@meredithcook13)

    Thanks for the quick reply! Where do I need the add the code listed in that comment? This code:

    add_filter( ‘get_custom_logo’, ‘wecodeart_com’ );
    // Filter the output of logo to fix Googles Error about itemprop logo
    function wecodeart_com() {
    $custom_logo_id = get_theme_mod( ‘custom_logo’ );
    $html = sprintf( ‘%2$s‘,
    esc_url( home_url( ‘/’ ) ),
    wp_get_attachment_image( $custom_logo_id, ‘full’, false, array(
    ‘class’ => ‘custom-logo’,
    ) )
    );
    return $html;
    }

    Theme Author FameThemes

    (@famethemes)

    @meredithcook13

    Please put it in your theme or child theme’s functions.php.

    Thread Starter meredithcook13

    (@meredithcook13)

    Unfortunately, that did not work. This is the site I’m working on: https://www.precisionvasectomy.com/

    Any chance you could take a peek at the page source and make sure I placed the code in the proper place?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Changing logo link?’ is closed to new replies.