Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1432605

    Hi,

    I need to translate the phone-info text. I’m using WPML to translate the site.

    I try to put different text in the 2 languages on the phone-info field on header > Extra element but I doesn’t work. Enfold duplicats the text in two languages.

    How can I do it?

    Thanks in advance,

    Jordi

    #1432683

    Hey Empatica,

    Thank you for the inquiry.

    You can add something like this in the phone info field.

    
    <p class='av-phone-info-content lang-en'>Phone info EN</p>
    <p class='av-phone-info-content lang-it'>Phone info IT</p>
    

    Then use this css code to toggle the display of the element based on the active language.

    .av-phone-info-content { display: none; }
    
    html[lang=”it-IT”] #top .av-phone-info-content.lang-it {
    display: inline-block;
    }
    
    html[lang=”en-GB”] #top .av-phone-info-content.lang-en {
    display: inline-block;
    }
    

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.