3 replies [Last post]
rossmarc
rossmarc's picture
Offline
newbie
world wide
Last seen: 7 years 19 weeks ago
world wide
Timezone: GMT-7
Joined: 2014-07-19
Posts: 1
Points: 2

Hello Im pretty new at coding and not familiar with the geo location abilities of web design but my web site sells world wide. At the top of my home page is the phone number. Could someone tell me how I can make the phone number display differently based on what country the user is in.

Tags:
Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 5 weeks 5 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Hi rossmarc, This is not a

Hi rossmarc,
This is not a CSS issue.
What you would need to do is detect the users location probably with JavaScript and then rewrite the phone number.
Search google on "javascript detect country" should be a good start.

australianlogos
australianlogos's picture
Offline
newbie
australia
Last seen: 7 years 17 weeks ago
australia
Timezone: GMT+5
Joined: 2014-08-02
Posts: 0
Points: 1

this can be done with

this can be done with javascript not with css

NguyenTrang01
NguyenTrang01's picture
Offline
newbie
Last seen: 7 years 15 weeks ago
Timezone: GMT+7
Joined: 2014-08-12
Posts: 1
Points: 1

I agree with above idead:

I agree with above idead: javascript can help this issue Smile

http://baoduhoc.vn