Theming

Changing the Text

Now that we have a theme, we can change the text.

In this example we're going to change the text * Required information.

Required text

To do this we'll create the folder structure below and inside it create a file named custom.php

/comments/frontend/view/my_theme/language/english/custom.php

Inside our custom.php file, we add the below:

						<?php
						$_['lang_text_required'] = '* Mandatory';
						?>
					

How did we know to use the term 'lang_text_required' above? By using the 'Tools -> Text Finder' admin feature.

We can add as many language strings to this file as we like. And the final result ...

Mandatory text