Modifying child theme’s header

It’s good practice to use: the proper WordPress way of wp_enqueue_scripts to add your scripts and styles; the wp_head hook to add more code into your head section. Read more. Either you can use and place into your functions.php. Let me know if it’s what you were looking for.

how to add functions to my function.php using a child theme?

The site crashes, because you have a typo in that code. You’re missing an apostrophe at the beginning of the string: // Custom Function to Include function my_favicon_link() { echo <link rel=”shortcut icon” type=”image/x-icon” href=”https://wordpress.stackexchange.com/favicon.ico” />’ . “\n”; ^ missing apostrophe } add_action( ‘wp_head’, ‘my_favicon_link’ ); Here’s the fixed version: // Custom Function to Include … Read more