• Resolved paprika27

    (@paprika27)


    hello world,

    I’m looking for the best way to change this into another language permanently preferably without touching the theme (child theme doesn’t seem to work and I wouldn’t need one for anything but this) or enqueueing javascript.

    If I do it with css pseudo selectors (hiding “See all..” and placing “ALLE NEUIGKEITEN”) my button gets awkward dimensions but perhaps I just didn’t get overflow and all that right.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    Why not simply translate the theme using the .pot file?

    Thread Starter paprika27

    (@paprika27)

    Thanks!
    will that be lost when I update?

    Yeah, you would generate a .po and a .mo file from that .pot and you would have to re-add them in /languages/ folder after each update.

    Another way to do it would be to use a plugin, like this one. I never really used it but I think that once you translate the theme with the help of that plugin you should be safe from updates. And Moesia is fully translatable so you can change any English string you want into your own language.

    Thread Starter paprika27

    (@paprika27)

    I feel this is a bit much for just one button. I’ll do it in javascript. It would be nice if this button were editable like the call to action button is.

    Thread Starter paprika27

    (@paprika27)

    in case anybody else needs it:

    jQuery(document).ready(function($){
    document.getElementsByClassName(‘all-news’)[0].innerHTML = “Alle Neuigkeiten”;
    });

    to be run in wp_footer ie by using plugin “Custom css-js-php” (make sure jQuery is not being defered).

    Cool. We’ll see about making the button editable in a future version.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘"SEE ALL OUR NEWS"’ is closed to new replies.