Back to Booking Calendar Guides

This guide applies to:

  • Basic Edition
  • Plus Edition
  • Pro Edition
  • Business Edition

Introduction

The text in the booking calendar is for general booking purposes. But, sometimes it’s necessary to change the text, including headers and titles, to make more sense to your customers and business.

This guide explains the two methods you can use to change text in the booking calendar:

  • Using the Loco Translate plugin
  • No plugin: Adding to your theme’s functions.php file

What This is Useful For

  • Change the name and email address field label in the booking form
  • Say something other than, “What type of appointment are you booking?”
  • Translation not in the proper form.
ssa-default-field-labels

Loco Translate Plugin

Loco Translate is a free plugin to edit built in plugin field labels. Install and activate the Loco Translate plugin.

Create a New Language Profile

After activating Loco Translate, look for the Loco Translate heading on the bottom left side of your WordPress Dashboard.

Click on it, and then choose “Plugins”

Click on Loco Translate => Plugins

You should see a full list of all the plugins installed on your site. Click Simply Schedule Appointments, and then click New Language.

SSA => New Language

The next screen will show two steps.

On the first step, choose the language that you currently use on your WordPress site. On the second step, choose System. When you’re ready, click Start Translating.

ssa-loco-translate-language-settings

Start Translating

After creating the new language profile, you can now start translating!

The top half of the screen displays a list of all the different phrases in Simply Schedule Appointments. You can use the filter section to search for the phrase you want to change.

Let’s say we want to change the default “Name” field to display as “Please enter your full legal name”. We can follow these steps to change the field label:

  1. Use the filter to search for “Name”.
  2. Click on the field label “Name”.
  3. Towards the bottom of the screen, you will see an area for the translated text. Enter the new phrase here.
  4. Click Save.

Check the Simply Schedule Appointments booking form to make sure that it’s working:

And that’s it! You can repeat the steps above for any other built in labels you’d like to change.


No Plugin: Adding to the functions.php File

If you’re comfortable with adding PHP code to your functions.php file (or a custom plugin), this code should help you achieve the same thing as LocoTranslate without adding the performance overhead of another plugin:

add_filter( 'gettext', 'customize_ssa_button_text', 100, 3 );

function customize_ssa_button_text( $translated_text, $text, $domain ) 
{
    if ( $domain !== 'simply-schedule-appointments' ) 
    {
        return $translated_text;
    }

    if ( $text === 'OLD TEXT' ) {
        return 'NEW TEXT';
    }

    return $translated_text;
}

Just make sure to make the proper replacements in this bit of code, for example:

if ( $text === 'There are no available appointment times.' ) {
    return 'Sorry, there are no appointments at this time. Check again Monday morning :)';
}

Accessing the functions.php File

In your WordPress Dashboard, go to Appearance > Theme Editor. On the right-side, you should see a sidebar with files. Select the functions.php file.

Scroll all the way to the bottom and paste in the above code, making sure you’ve properly replaced the old text and new text fields.

Click Update File and that should be it!

Updating my functions.php file to replace a line of text in my booking calendar

Still stuck?

File a support ticket with our five-star support team to get more help.

File a ticket

  • Please provide any information that will be helpful in helping you get your issue fixed. What have you tried already? What results did you expect? What did you get instead?
  • This field is for validation purposes and should be left unchanged.

Related Guides