dawn theme - Add phone number in banner or header

Can someone please advise what code to use to add a phone number in the banner or header of my site on desktop? Screenshot attached of the 2 options of where I would like to place it, whichever option is easier to code in I’m fine with.

https://milkymotorsports.com/

1 Like

To add to the header you can go to Online Store > Navigation > Add Menu Item

Then input the title: “Call Us” OR “Phone”

For the link input the following replacing the number with your own:

tel:+05890000111

Then click “Add” and finally click “Save”.

The link will prompt users to call you when clicked. I hope this will be helpful to you.

Dont hesitate to reach out for more help!
@biznazz101

I don’t want it as a menu item, pls read the post

Hi @milkymotorsport

Do you mean to add here?

If it is try this one.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (min-width: 990px){
summary.header__icon.header__icon--search.header__icon--summary.link.focus-inset.modal__toggle:after {
    content: "+10000000000";
    position: absolute;
    left: 60px;
    top: 19px;
}
}
  • And Save.
1 Like

@Made4uo-Ribe This is great, but the phone number is now clickable along with the search button, can it not be clickable?

1 Like

Im sorry to say, I cant make it clickable button with css alone. It needs a HTML code, and you need a developer for that to input the code in your store.

@Made4uo-Ribe I want it to NOT be clickable, if you go to my site you will see it’s clickable currently - https://milkymotorsports.com/

1 Like

Oh, Yes you can. The code that i give you can insert this code.

pointer-events: none;

Must be like this.

1 Like

@Made4uo-Ribe thank you!!!

1 Like

Welcome. :blush:

Hi @milkymotorsport

This is Richard from PageFly - Shopify Page Builder App, I’d like to suggest this idea:
Online Store ->Theme ->Edit code
Assets ->Base.css

.header__icon.header__icon--search.header__icon--summary.link.focus-inset.modal__toggle:after {
    content: "+10000000000";
    position: absolute;
    left: 60px;
    top: 19px;
}

Hope you find my answer helpful!
Best regards,
Richard | PageFly

Hi, this is really helpful and works great on the desktop site BUT it does not look good on the mobile site… any tips how to rectify?