Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Link to changelog #4964
    stefanp44
    Participant

    Thanks!

    in reply to: Translating the home sections using WPML #2688
    stefanp44
    Participant

    Hi,

    Thanks for your answer. I found another solution : as I alone will edit the website, I hard coded the variables straight into my child theme. As you can see below, if it’s English then the variables are, else if it’s German, the variables are … Works too ! 😉

    if(ICL_LANGUAGE_CODE=='en') :
    	$total_counter_title = array ('', 'countries', 'satisfied customers', 'worldwide projects', 'installed kilometers');
    if(ICL_LANGUAGE_CODE=='de') :
    $total_counter_title = array ...
    endif;
    in reply to: Translating the home sections using WPML #2578
    stefanp44
    Participant

    Hi,

    Thanks for your answer.

    Perhaps I could adjust it directly in the template of my child theme, tweaking those two lines:

    $total_counter_title = get_theme_mod(‘total_counter_title’.$i);
    <h3 class=”ht-counter-title”><?php echo esc_html($total_counter_title); ?></h3>

    and adjusting them with conditions:
    if language is german, then …

    Would you have any hint regarding this ?

Viewing 3 posts - 1 through 3 (of 3 total)