Add phone number next to Logo

Hi,

I am using Sydney with the ‘centred menu and site logo option’, and would like to have the phone number displayed on the upper right - more or less in line with the middle of the logo.

Can you please tell me how to achieve this? I did find a similar thread posted earlier that put the number just above the menu, but this is not what I am looking for.

Thanks in advance…

Hi,

To add a phone number next to logo, I suggest you to work with a child theme. Here is the steps:

  1. Create a child theme
  2. duplicate header.php from the parent theme to the child theme
  3. open header.php in your child theme and add your phone number after this line:
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>">
<img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" />
</a>

example:

<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>">
<img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" />
</a> 
<span class="header-phone-no">1234567</span>

Let me know how it goes.