The reason for the syntax error is this typo:
<? php
It should be
<?php
Secondly, you should use the wp_enqueue_scripts
hook instead of the wp_head
hook.
Check out the Codex for more info on the wp_enqueue_scripts
hook.
Related Posts:
- Child Theme Not Overriding Parent Theme
- Please Explain the Importing Process of Multiple Stylesheets for Child Themes
- Not all CSS elements transferring via parent to child?
- Parent theme styles overriding child theme CSS [closed]
- get_template_directory_uri() links to child theme not parent
- Setting Up Child Theme To Take Priority
- Child Theme not loading multiple stylesheets
- Help with is_page() and calling css for specific pages in a Child Theme
- Preventing PHP Execution in Parent Theme
- How do I make my child theme’s CSS update when I save it?
- get_template_directory_uri pointing to parent theme not child theme
- How to override a function when isn’t at functions.php
- functions.php inject inline css
- One Child Functions.php for Multiple Child Themes
- Removing custom background and header feature in child theme
- How do I create a new WP admin color scheme?
- How to override function in functions.php of parent theme?
- Logout/login redirect CSS issue
- override parent theme configuration in child functions.php
- Add attribute to link tag that’s generated through wp_register_style?
- How to override functions.php in child theme?
- Function in Child Theme not overriding Parent Theme function [duplicate]
- Simple/basic use of get_current_screen
- Is it possible to be more page/post specific with admin_enqueue_script?
- Enqueue styles after a plugin
- How to override enqueued styles using a child theme
- Using the child theme functions.php to change the customizer.php on parent theme
- Child theme functions.php not executing
- How to add background image control to page admin controls?
- How to store / access files in child theme folder
- Make “sidebar template” the default template for new pages
- override parent theme configuration in child functions.php
- wp_enqueue JavaScript in child-theme (ReferenceError) using Search & Go
- Twenty Eleven Child theme error when attempting to use a rewritten function
- How do I get a child theme to load scripts from the parent theme?
- Add class or ID to any WordPress function
- Best practice when altering a parent theme function inside a child theme?
- Avoid loading css from parent theme
- Enqueue Style Only On Certain Pages Not Working
- Why does the ‘wp_nav_menu’ function work only until a menu is created?
- Creating a child theme – functions.php code issue
- How to style options page in dashboard?
- Overwriting Parent Theme’s Image Sizes
- Problem only while using require_once() within functions.php
- Twentyten Child Theme: header images display messed up in admin panel
- change the url paths in the stylesheet dynamically
- Reuse variable in hook callback
- Automatically include all php files in a child theme directory
- Override the function twentytwelve_scripts_styles in a child theme
- Skeleton Child Theme Add Icon Bar to Header Flex Grid
- How to load parent theme template parts in child theme
- Custom styles.css sheet for visual editor
- Running script based on Category
- How would I go about replacing this function in my child theme located in inc/template-tags.php
- Is my code correct to enqueue CSS on a specific page?
- Got white blank page after copying the functions.php to child theme
- Split Media Queries in different files!
- Randomizing wp_tag_cloud() in child theme
- Where do I go to edit this area? [closed]
- How to insert class in each list of categories?
- Theme JS is available but theme CSS isn’t
- Proper Way to Load stylesheet on Condition
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- Child theme function.php causes fatal error
- Is it possible to use add_filter in an included file in the child theme’s functions.php?
- How to remove admin footer text from inside child theme?
- How to store a number (coming from cookie) into query vars for later usage in other filters?
- How to overwrite template.php file
- remove_action not working, even after changing priority [duplicate]
- Solution dealing with Child Theme / Parent theme functions
- remove/hide wp-editor
- Removing parent theme CSS without editing parent theme
- How to override this theme function in child theme
- Change custom featured image size in twentythirteen child theme
- Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy
- Looking for Functions File that doesn’t Exist
- Include widget file in functions.php of child theme
- Can’t load assets
- Add Javascript code to functions.php childtheme
- How to reference different css (bootstrap) stylesheets for the header and body of a page?
- CSS style and app.js not loading
- function class doesnt work
- Replace theme function
- how to remove a tag in the_category function
- How to add styles in existing function?
- How would I correctly implement a new if statement in a child functions file?
- Adding a class to the body of an inactive site using multisite
- Conditionally apply css for a specific template part
- Correct way of Enqueue self hosted fonts in sass project
- Including admin-options.php file in Child Themes
- How to automatically add custom classes to headings in content area
- uninstall a theme programmaticlly
- Update add_image_size
- Load a Child Theme’s style.css just before the closing tag
- Is it possible to change parameters of Parent theme function in the Child theme?
- Random text changing to weird icons in both admin & front end
- unregister_sidebar in child theme not working
- functions.php / replacing div’s with new ones?
- Child Theme not working – CSS gone
- How to fix enqueue_styles error for a twenty-seventeen childtheme