How do I change the header logo link?

I’ve searched and read through a bunch of questions and answers about this, but a lot of them were old and the answers didn’t work.

I have a website with the phone number as the logo, I’d like to link the logo image to the tel+1 phone number link, but I can’t find the right section anywhere. Can anyone advise? Thanks

Also, why isn’t there just a simple section to update this? People have been struggling with this since 2016 from what I could see.

Hi,

The logo by default uses your sites URL this is standard across all WordPress themes and the reason why there is no option to change the logo link.

If you’re using the BB Theme you will need to edit the layout you’re using file via a child theme. These files can be found in the /includes/ folder.

For example, if you’re using the Nav Right header layout, you will want to copy the nav-right.php file to your child theme’s /includes/ directory. By default, the BB Theme child has no includes folder so you will need to create one.

Once created, open that file in a code editor and replace <?php echo esc_url( home_url( '/' ) ); ?> in the a tag to your preferred link.

<a href="<?php echo esc_url( home_url( '/' ) ); ?>" itemprop="url"><?php FLTheme::logo(); ?></a>

Save the changes and your logo image should use that link.

Hi Danny, thanks for the help.

I discovered the key was to go into the Appearance --> Theme Editor --> header.php --> search: fl-page-header-logo a").attr(“href”, and then put in “tel:555-555-5555” in place of the normal link.