Jump to content

wp_head() declaration? Where?

Go to solution Solved by Haswellx86,

People here are not very experienced, so you better go asking on Stack Overflow.

Hey,so I need to insert my styles from functions.php where I enqueued them to header.php and I call the function wp_head() in header.php and it says undefined function. So I define it in functions.php(those files are in my theme root folder) like this:

function wp_head() {
    /**
     * Prints scripts or data in the head tag on the front end.
     *
     * @since 1.5.0
     */
    do_action( 'wp_head' );
}

And it gives me an error(fails to load admin panel) saying that function is already defined somewhere and I cannot redefine it. So how do I use it?

Link to comment
https://linustechtips.com/topic/1416150-wp_head-declaration-where/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×