Wordpress enqueue styles
Go to solution
Solved by ladybug,
On 3/5/2022 at 8:49 PM, stefanmz said:oh yeah I did wrap it in php tags. Thanks! We'll see if it works now.
UPDATE: Well it doesn't. I called the function and same thing no styles,when I view page source I don't see any link tags generated. Is my enqueue code wrong? Also it says undefined function wp_head.
It works I had to use get_template_directory_uri instead of get_template_directory

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 accountSign in
Already have an account? Sign in here.
Sign In Now