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
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
In the code block you sent make the following changes
to
</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>
Where do I enter the data for Header Content?
Jerry Croteau
> On Jan 10, 2017, at 11:55 AM, concrete5 Community <discussions@concretecms.com> wrote:
Jerry Croteau
> On Jan 10, 2017, at 11:55 AM, concrete5 Community <discussions@concretecms.com> wrote:
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
I would advise making it a link using the correct html
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.
Seehttps://developers.google.com/web/fundamentals/native-hardware/click... for reference.
</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.
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:
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:
You can include hypens in the href, but they are not required.
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.
Hey thanks for that jasteele, that's super helpful.
This is why I love the C5 forums :)
This is why I love the C5 forums :)
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...
There are some wierd outliers like Russia, but for the U.S. +1 is the way to go...
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