Add Telephone # to Header of site1 user found helpful
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.
I'll do that for you. Please message me.
There will most likely be no charge, depending on your theme and page structure.
</div> <!— g2 added 1/9/17 Call 978.742.9800 —> </div>
</div> <?php $a = new GlobalArea('Header Contact'); $a->setBlockLimit(1); $a->display($c); ?> </div>
> On Jan 10, 2017, at 11:55 AM, concrete5 Community <[email protected]> wrote:
I would advise making it a link using the correct html
</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.
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.
This is why I love the C5 forums :)
There are some wierd outliers like Russia, but for the U.S. +1 is the way to go...