Been searching a lot for how to call a function in header.php where the function is in functions.php.
How do I solve this?
I have my function in functions.php like this:
function testFunction()
{
echo "This is a test";
}
Been searching a lot for how to call a function in header.php where the function is in functions.php.
How do I solve this?
I have my function in functions.php like this:
function testFunction()
{
echo "This is a test";
}
You must be logged in to post a comment.
Simple! just call it
testFunction();
wherever you want between php tags.But not a wp question