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";
}

1 Answer
1

Simple! just call it testFunction(); wherever you want between php tags.

But not a wp question

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *