Home › Forums › Weaver Xtreme Theme › HTML Insertion in Pre Header

Viewing 17 post (of 17 total)
  • Author
    Posts
  • #75289
    Weaver
    Keymaster
    Browser language detection:
    Most websites use JavaScript code to detect the language set in the user’s browser settings.
    It is also possible to use a button to switch languages.
    I haven’t tested this, but I’m assuming the javascript would  change the language in the

    <html lang=”en-US“>

    line of the site’s html. The site would also then need to use that info to switch the language. I’ve never built a totally miltilanguage site, so I don’t know how these things really operate. The example I gave would work if you just wanted to display a few different things based on language, but providing content for a full site would not work very well.

    I don’t really understand you goal to just change the image depending on language. Do you have some other way to change the content?

    Are you now able to do what you need?

Viewing 17 post (of 17 total)
  • You must be logged in to reply to this topic.