We are moving a HTML/PHP site to WordPress and want to use as much of the current code as possible. We are using the Avada theme, and have created an Avada child theme folder with the 2 required files (
style.css). After much research to learn exactly how to place our custom .php files inside of WordPress, and call them from the page, we have a few questions:
- Can you place custom .php files directly inside the child theme folder? Some of the research we found says you must write your custom PHP functions inside of the
- If we are forced to write all functions inside the
functions.phpfile, how do you "call" a function within a function? Using "includes" doesn't make much sense if all of the functions are inside one file.
- If you CAN STORE the custom .php files inside of the child theme folder (as separate files and file names), do you call them with an "include" like you would in regular HTML/PHP site files (not inside of WordPress)? If not, how does this work?