Add Telephone # to Header of site

Permalink 1 user found helpful
Hi,
I would like to add the telephone # to the header of my site. If possible I would like this to be updated/modified by the content managers without having to edit the .php or .html files in the backend.

Thanks,
Jerry

stoneyard
View Replies:
shotrox replied on at Permalink Reply
shotrox
Hi Jerry

I'll do that for you. Please message me.
There will most likely be no charge, depending on your theme and page structure.

Thanks :)
Alexander
TMDesigns replied on at Permalink Reply
TMDesigns
In the code block you sent make the following changes
</div>
<!— g2 added 1/9/17
Call 978.742.9800
—>
   </div>


to
</div>
      <?php 
         $a = new GlobalArea('Header Contact');
         $a->setBlockLimit(1);
         $a->display($c);
      ?>
   </div>
stoneyard replied on at Permalink Reply
stoneyard
Where do I enter the data for Header Content?


Jerry Croteau


> On Jan 10, 2017, at 11:55 AM, concrete5 Community <[email protected]> wrote:
TMDesigns replied on at Permalink Reply
TMDesigns
By adding that code you will create a new global editable region. You can go into any page put it in edit mode and then add any text you want.

I would advise making it a link using the correct html
PixelFields replied on at Permalink Reply
PixelFields
Pro Tip - make it easy for visitors to get in touch by hyperlinking the # which will dial it when clicked. Also bonus SEO points I believe.

</div>
<!— g2 added 1/9/17
Call <a href="tel:978-742-9800">978.742.9800</a>>
   </div>


Seehttps://developers.google.com/web/fundamentals/native-hardware/click... for reference.
jasteele12 replied on at Permalink Reply
jasteele12
Good point PixelFields, but looks like you missed the part about the numbers always being in an international format (+1 for US phone numbers)

It's an even better idea to give it some symantic markup too:
<div itemscope itemtype="http://schema.org/LocalBusiness">
  <h1 itemprop="name">My Business</h1>
  Phone: <span itemprop="telephone"><a href="tel:+18005551212">800-555-1212</a></span>
</div>

There is a corresponding fax: and you can include w (wait for dialtone) and p (pause 1 second) to handle extensions.

Examples - Russian site to call the US and another to dial extension 222 w/in the US:
<a href="tel:8w00+18005551212">(800) 555-1212</a>
<a href="tel:+18005551212p222>(800) 555-1212 x 222</a>

You can include hypens in the href, but they are not required.
PixelFields replied on at Permalink Reply
PixelFields
Hey thanks for that jasteele, that's super helpful.
This is why I love the C5 forums :)
jasteele12 replied on at Permalink Reply
jasteele12
You're welcome - and I totally agree!

There are some wierd outliers like Russia, but for the U.S. +1 is the way to go...