Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #986374

    Please help me ! I would like translate all the info in “phone number” . And, on mobile, the phone number is white and i want change the color for contrast with the background. Can you help me ? Thank you so much

    #986763

    Hey EALB,

    Thank you for using Enfold.

    You can supply different phone info for each language.
    Use this css code to change the font color on mobile view.

    @media only screen and (max-width: 767px) {
        .av_header_transparency .phone-info a {
            color: red;
        }
    }

    Best regards,
    Ismael

    #986846

    Thank you very muchIsmael. But where can i change the langage of phone info please ?

    #987456

    Hi,

    In the theme options, change the language and then set another phone info. You can have different set of theme options for each language.

    UPDATE: I didn’t notice that you’re using Polylang. Try update the strings manually.

    // https://polylang.pro/doc/strings-translation/#translate-strings

    Best regards,
    Ismael

    #987487

    Thanks Ismael For your help but in the string, not appear the phone info … can you help me plz ?

    #987863

    Hi,

    Thanks for the update.

    We’ve added this filter in the functions.php file to change the phone value for different languages.

    add_filter('avf_header_setting_filter', 'avf_header_setting_filter_mod', 9999, 1);
    function avf_header_setting_filter_mod($header) {
        $lang = pll_current_language('slug');
        if($lang == 'fr') {
            $header['phone'] = '<a href="http://www.paradis.ealbmaquette.com/mediatheque/">Médiathèque</a> - <a href="http://www.paradis.ealbmaquette.com/presse/">Presse</a>';
        } else {
    		$header['phone'] = '<a href="http://www.paradis.ealbmaquette.com/en/library/">Library</a> - <a href="http://www.paradis.ealbmaquette.com/en/press/">Press</a>';
    	}
    
    	return $header;
    }
    

    Best regards,
    Ismael

    #987867

    Hi Ismael, thank you for your assistance but the site is not functional like before your assistance … the header is not good and many problem to navigate … plz help me because my client must check the site during this week end … sorry but I don’t understand what is happened

    #988538

    Hi,

    I’m very sorry about that. I forgot to remove the variable dump code. It’s removed now. Please check the site again.

    Best regards,
    Ismael

    #997141

    Thanks, everything is OK

    Best regards,

    #997344

    Hi,

    Glad we could help!

    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    Don’t forget to bookmark Enfold Documentation for future reference.

    Thank you for using Enfold :)

    Best regards,
    Basilis

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Header phone translation + White on header of mobile’ is closed to new replies.