Plugin Author
myCred
(@designbymerovingi)
Hey Scotm.
Personally I prefer to hold all myCRED customizations in a separate file in my themes folder. This way, I can keep all customizations in one place and it is very simple to include this file in my functions.php file.
I usually have a file called mycred-custom.php and I use the require_once PHP function in my themes functions.php file like this:
require_once( get_stylesheet_directory() . '/mycred-custom.php' );
Thread Starter
Scotm
(@scotm)
Gabriel
That’s what I thought, actually, but when I include that in my functions.php file calling for the custom file it gives me a server error. I’m using a child theme so might that affect the path to the file?
Plugin Author
myCred
(@designbymerovingi)
What error are you getting.
If you use a child theme then of course you need to paste this into your child themes functions.php file.
get_stylesheet_directory() gets the child themes folder.