KpsLok
KpsLok

Reputation: 903

How do I change wordpress texts

I'm pretty newbie with wordpress.

I already created my website based on template. I did couple changes on ".po" file, like:

#: wp-login.php:875 wp-login.php:950 wp-login.php:1010 wp-login.php:1112
#: wp-includes/general-template.php:324
msgid "Log in"
msgstr "Log into your awesome account"

...

#: wp-login.php:1347 wp-login.php:1391 wp-includes/general-template.php:466
msgid "Log In"
msgstr "Another Log In text"

None of them were changed. Why it happened?

Upvotes: 0

Views: 43

Answers (1)

Johannes
Johannes

Reputation: 67799

.po files are for translations to other languages, not to change what is displayed by your templates.

To change texts that are part of template files, you have to change the according php files in the theme folder. But that's not a good idea, since next time the theme is updated, these changed files will be replaced by the new files and your changes will be lost.

So to avoid that, it's best to use a child theme and only include the files (as copies from the parent theme) where you want to make changes.

More on child themes here: https://developer.wordpress.org/themes/advanced-topics/child-themes/

Upvotes: 1

Related Questions