• I just recently installed Mutlilang on a Divi-based site and so far, so good. From the wp-admin. Multivang definitely makes it easy to add content for my client, in this case in French.

    However, I have some hard coded items in my header.php and footer.php for my child theme. Is there some kind of if else statement where based on which language you’re on, the text changes to the proper language.

    Like in my top header, I coded this is my header.php:
    <h3>Free Global Shipping (excludes VAT & Duties)</h3>

    so what I’d like is some kind of switcher in my code so if I in the French or fr site, I get this:
    <h3>Livraison mondiale gratuite (hors TVA et droits de douane)</h3>

    Make sense? I just wonder how using Multivang?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘If / Else display content from template files based on language’ is closed to new replies.