• Resolved Chris

    (@chriscodedesigns)


    Is there a way to customise the labels of the default enrolment form without the use of an additional plugin?

    We are based in the UK and as such having fields labelled “State” and “Zip code” need to be replaced with “County” and “Post code”; there’s no documentation on how to do this so any pointers would be a great help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @chriscodedesigns,

    You can localize all of this with a translation file (no plugin needed): https://lifterlms.com/docs/use-lifterlms-language-english/

    See the “Creating your own language file” section.

    I tend to recommend users use Loco Translate because while it is another plugin I find a lot of people have a hard time with poedit and loading files via FTP. Loco gives you a nice simple interface.

    If it were me, I’d manage it with po and load the file via FTP. Less overhead although I don’t think Loco is that “heavy” from a performance perspective anyway.

    Let me know if that helps,

    wplms24

    (@wplms24)

    I tried localizing translation files using Loco, but every time LifterLMS was updated I would lose the local translation. I was not sure if that was the expected outcome of local translations when an update comes out or not, and I was in the midst of a group project with other people relying on me to “fix” this, so I looked for an alternative method, too.

    I found a function to put in our theme which allows for the replacement of words without the use of external plugins. For example, you could tell it to replace every instance of “course” with “module”, or – in the case described by @chriscodedesigns, you could replace “State” with “County”. This function will affect both front and backend.

    This was a long while back, and ig I’m not mistaken I used a technique learned from here: https://ronangelo.com/change-or-translate-text-on-a-wordpress-theme/

    The result was fantastic and you can use the code innyour functions.php file (to avoid creating or using another plugin).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customise/Localise form labels without plugin’ is closed to new replies.