Customize Text
On this page
You can use the localization system to customize the text that displays throughout WHMCS.
Customize Text in WHMCS
To customize text in WHMCS:
Open the language file for the desired language (for example,
/lang/english.php
) in your preferred text editor.Search for the text that you want to customize. At the beginning of that line, note the corresponding string name. For example,
headertext
is the string name forWelcome to our Support Portal
in the following example:For more information about finding strings in MarketConnect promotions, see MarketConnect Promotions below.Create an
overrides
folder inside of thelang
directory.Create or copy the language file that you want to override. For example, to create an override for the English language file, you would create the
/lang/overrides/english.php
file.Open the newly-created file in your preferred editor.
Start the file with a PHP tag:
<?php
Enter the strings that you want to override, entering the desired text and using the format below:
$_LANG['headertext'] = "Welcome home!";
This example replaces the original
Welcome to our Support Portal
text withWelcome home!
.Save the file with UTF-8 encoding and upload to your server.
MarketConnect Promotions
You can customize and translate text in MarketConnect promotions using the steps above. There are several strings of text in each MarketConnect promotion, and you must update each string separately.
Language strings for MarketConnect promotions will contain the following sections:
$_LANG['store']['product-type']['promo-type']['product-name']['element-name']
In the example above:
store
indicates that the string is part of MarketConnect.product-type
represents the MarketConnect product type.For a list of MarketConnect product types, see Customization and Localization of Promotions.promo-type
represents the type of promotion.promo
indicates that the string is in a promotion for clients who do not already own that product.upsell
indicates that the string is in a promotion for clients who own that product and can upgrade it.
product-name
represents the name of the MarketConnect product.For a list of MarketConnect product names, see Customization and Localization of Promotions.element-name
represents the element within the promotion:
In the above example: -Boost your search rankings
is theheadline
element. -with a RapidSSL Certificate
is thetagline
element. -Activate HTTPS and the lock icon
is thefeature1
element. -Secure online transactions
is thefeature2
element. -Encrypt sensitive data
is thefeature3
element. -Protect user privacy
is thefeature4
element. -Add RapidSSL from just $17.95 USD/yr
is thecta
element.
For example, the following string could be the tagline for a Symantec promotion of RapidSSL certificates for clients who do not currently own one:
$_LANG[`store`]['symantec']['promo']['rapidssl_rapidssl']['tagline'] = 'with a RapidSSL Certificate';
Last modified: October 30, 2024