Oct 242019
 

Edit Simple Membership Default English Strings post shows you how to edit the English language default strings in a few steps.

The default English language for SMP “Simple Membership Plugin” strings are simple and easy to read. However there might be times when you might want to edit the English language default strings to suit your needs. This post will show you how to achieve this.

This documentation focuses on the login widget as a guide. You can also use the following documentation to edit the widget if you are comfortable editing PHP and CSS files.

Note: Remember these steps can be used to edit the strings in Simple Membership Plugin admin area.

What You Need:

Edit Simple Membership Default English Strings

Step 1 )  Install and activate Loco Translate plugin.

Note: This post assumes you have already installed and activate Simple Membership plugin.

Step 2 )  Find out what English language is set up in your site. Remember there are different English languages available to set up WordPress.

Go to Settings -> General -> Site Language as illustrated in the image below to find out which English language is your site set up with. The following image is showing English (United States) language. That means the po and mo English (United States) language files will be created for this site.

simple-membership-login-widget-site-language

Step 3 )  Go to Loco Translate -> Plugins as illustrated in the following image.

simple-membership-loco-translate-plugin-admin-menu

Step 4 )  Click on Simple WordPress Membership link as illustrated in the following image.

click-simple-wordpress-membership-plugin-loco-translate

Step 5 ) Click on Overview tab as illustrated in the image below. Select the language you want to edit. If you can’t find the language, click on New language link as illustrated in the image below to add a new language. 

simple-wordpress-membership-click-new-language-link-loco-translate

Step 6 ) The following image shows you the English (United States) language selected. Click on Start translating button when you are ready.

simple-wordpress-membership-plugin-choose-loco-translate-language

Step 7 )  The following image Member Login displays the login widget in the site. In this example the Username or Email string will be edited.

simple-membership-login-widget-default-strings

Step 8 ) The following image shows you the new edited string User Name added. Click on Save button when you finish translating.

Note: Because this is an English site, you don’t have to edit all the strings. You just need to edit the strings you want to make changes too.

simple-membership-loco-translate-string-translated

Step 9 )  The following image displays the new edited string User Name in the login widget.

If you are not using a child theme, then make sure you copy locally the new po and mo language files. This is important or else you will loose these files the moment you update the plugin. The following is the list of the English United State language files created for this example. These are the files that will be downloaded locally to the computer/ laptop. Once you have updated the plugin you will need to upload these files again.

Language Files:

  • simple-membership-en_US.po
  • simple-membership-en_US.mo

Language Files Location:

  • yoursite.com/wp-content/plugins/simple-membership/languages

simple-membership-login-widget-strings-edited

===================================

That is all you need to do to edit default strings in the plugin.

If you have any questions please let me know.

Enjoy.

Simple Membership Plugin Tutorial List:

Manuel Ballesta Ruiz is a web developer, Blogger and WordPress Enthusiast.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)