• Hi, I’m running this plugin on a bilingual site, using WPML to manage the translations. I was wondering if there’s a way to translate the button text as it doesn’t appear to be localized. Thank you!

Viewing 1 replies (of 1 total)
  • For anyone else who needed this, I did it crudely with Javascript…

    Just place this at the bottom of your template, edit language codes and messages as you wish.

    <?php
    
    if (ICL_LANGUAGE_CODE == "fr") {
        
       echo '<script> jQuery(\'span.elm-button-text\').html(\'Charger plus\');</script>';
            
        
        
    } elseif (ICL_LANGUAGE_CODE == "de") {
      
        echo '<script> jQuery(\'span.elm-button-text\').html(\'Mehr laden\');</script>';
         
        
    } elseif (ICL_LANGUAGE_CODE == "es") {
          
            echo '<script> jQuery(\'span.elm-button-text\').html(\'Carga más\');</script>';
    
      
            
    } else {
        
        echo '<script> jQuery(\'span.elm-button-text\').html(\'Load more\');</script>';
      
    }
        
    ?>
Viewing 1 replies (of 1 total)

The topic ‘“Load more” Button Translation’ is closed to new replies.