Change the Requires an Account title
- Thread started
- Last updated
What you’ll achieve
Replace the Requires an Account heading with wording that suits your site.
My site
Replace Requires an Account with your own heading, such as Create an account to continue.
Choose your replacement text
Use the replacement text you want visitors to see when they must sign up, for example "Create an account to continue". If your site uses several languages, add the translation to each language's override file.
Save the text in your language override
JReviews 6 account-required page
The standard v6 signup dialog has no Requires an Account heading to rename. This override changes the heading on the full account-required page instead. For example, JReviews displays the heading when a signed-out visitor opens a modern My Listings page without selecting another owner. It also appears on a draft listing preview that a signed-out visitor cannot access.
The language entry to change is requires_account inside headings, shown in the file below.
Joomla. Create templates/jreviews_overrides/resources/lang/en/site.php.
WordPress. Create jreviews_overrides/resources/lang/en/site.php.
Use the active locale in place of en.
For a new file, copy the complete block below. If the file already has a 'headings' => [ section, add the 'requires_account' line inside that section. Otherwise, add the shown 'headings' section inside the existing return [ block, before its closing ];. Keep the existing entries and only one PHP opening tag.
<?php
return [
'headings' => [
'requires_account' => 'Create an account to continue',
],
];
JReviews 5 and v6 Legacy
Change "Requires an Account" in the language override. Use a template override only if you also need to change the modal's layout.
Find the message in /components/com_jreviews/jreviews/locale/eng/LC_MESSAGES/default.po. Search for the text or message ID rather than a line number.
msgid "SIGNUP_MODAL_TITLE_REQUIRES_AN_ACCOUNT"
msgstr "Requires an Account"
Copy these two lines into your JReviews language override file. Keep msgid unchanged and replace the msgstr value with your title. Use the override for the language active on your site. Do not edit the distributed language file.
Joomla. For English, save the override as templates/jreviews_overrides/locale/eng/LC_MESSAGES/default.po.
WordPress. For English, save the override as jreviews_overrides/locale/eng/LC_MESSAGES/default.po.
Replace eng with the active legacy locale folder for another language. After creating a new file, clear Cache & File Registry in the JReviews control panel.
Check the new heading
After saving your language override, check the heading in the active site language.
JReviews 6 account-required page. Enable Listing List Pages in Early Access and publish a My Listings page. Open its URL without a user parameter in a private browser window while signed out. The account-required page should show Create an account to continue. You can also check an inaccessible draft preview URL. An ordinary signup dialog still has no heading.
JReviews 5 and v6 Legacy. Clear the JReviews cache and reopen the signup modal. Its heading should display your replacement text.