• Hello, is anybody knows how to modify the content of the top bar of shopstar? The texts not translated to my default language and the currency changes depending of the language you translate the site (meanwhile the value is stays the same, for example if you buy an item at 10 in HUF, changing the translation language to German, the price stays 10 but switches to EUR).
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Sziligolf, I have had the same problem, but could translate it with placing some code in functions php in my childtheme.

    /**
     * TRANSLATIONS
     */
        add_filter('gettext', 'translate_text');
        add_filter('ngettext', 'translate_text');
    
        function translate_text($translated) {
        $translated = str_ireplace('Original text 1', 'Translation 1', $translated); 
        $translated = str_ireplace('Original text 2', 'Translation 2', $translated); 
        $translated = str_ireplace('Original text 3', 'Translation 3', $translated);   
      return $translated;
        }

    Hope that works for you also.
    Good luck,
    Emilia

    • This reply was modified 7 years, 5 months ago by stippie.
    Thread Starter sziligolf

    (@sziligolf)

    Hi Emilia,
    Thanks a lot. I’ll definitely try it.
    Greetings
    Szilard

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘TOP BAR’ is closed to new replies.