Adding clickable phone number in header

url is

lvbachelorgirls.com

I am wanting the logo to click to a phone number instead of redirecting to the homepage, please advise.

Hello There,

Thanks for writing in! Since you have your child theme active and ready, please follow the following steps below:
1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
2] Insert the following code into that new file

<?php

// =============================================================================
// VIEWS/GLOBAL/_BRAND.PHP
// -----------------------------------------------------------------------------
// Outputs the brand.
// =============================================================================

$site_name        = get_bloginfo( 'name' );
$site_description = get_bloginfo( 'description' );
$logo             = x_make_protocol_relative( x_get_option( 'x_logo' ) );
$site_logo        = '<img src="' . $logo . '" alt="' . $site_description . '">';

?>

<?php echo '<h1 class="visually-hidden">' . $site_name . '</h1>'; ?>

<a href="tel:+1234567890" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>">
  <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?>
</a>

Please do not forget to change +1234567890 with your own phone number.

3] Save the file named as _brand.php
4] Upload this file to your server in the child theme’s folder wp-content/themes/x-child/framework/legacy/cranium/headers/views/global/

You will have to create the folder paths since it does not exist in your child theme yet.

Hope this helps. Please let us know how it goes.

Thank you for the fast reply,

I am not the most technical and unfortunately that sounds above my knowledge level, could u direct me how to make an private post with my login info for someone to assist with this?

Hey There,

You can reply or edit one of your replay and create a secure note where you can insert your login details. For more information, please check out this thread:

Thanks.

I just made a secure note, thank you so much for your help.

Do I need to make a new thread for each topic?

I can not figure out how to make the introduction header on each page (except home and blog) to be full size, the appear full size in cornerstone editor but they go very narrow when viewing the site.

Hey There,

We will just resolve one issue at a time to avoid confusion. I checked and saw your secure note. This isn’t enough to do the _brand.php file changes. You will have to send in your ftp details because we will be modifying a template file and we need to create folders and upload the template file in your child theme. Could you please send in the following:

  • FTP hostname
  • FTP username
  • FTP password

Thank you in advance.

I will add a secure note now, thank you very much

Hello There,

Thanks for providing the information. I have made the changes and your logo is now linked to your phone number.

Please check your site now.

Wow, you are the best I so appreciate it!!!

You’re welcome!
We’re glad we were able to help you out.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.