How do I determine which files to edit?
I want to make changes to the text that shows up in xxxxxxxxx spot on xxxxxx page. How do I find out what where it is, and what file to change?
-
Use a text-search tool that can handle standard text files. Alternatively, you may use the built-in Developers Toolkit. You can enter the words you’re looking for right there, and it will find them.
-
Search everything under the “includes” folder for the text you are trying to change/edit/delete.
-
That will show you the text inside a “define” statement much like this:
define('TEXT_GREET_USER','Welcome to my site');
-
This is where you’ll be making your changes. You should be sure to save the file according to the Template Overrides concept (see the Overrides Explained FAQ).
-
Then use this article to be sure you put your CHANGES into the right place:
-
IF YOU ARE desiring to modify the PHP code that “uses” the text you just located, then you need to do another search – ie: for the
TEXT_GREET_USER
(constant name that you just found), and find the files that reference it.