Child Theme funcions.php breaks site
-
This is my first time creating a child theme. I’m making it for dene-tha.com.
I created style.css and put it in the appropriate folder for my theme (fashionistas-child). This works, however, the site then has no styling.
So when I go on to create the code for the functions.php file, the site will not resolve. This is the code I used from the codex:(<?php) add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('parent-style') ); }
My theme has more than one style sheet, so I’m guessing this is the problem. However, I don’t know how to account for the other .css files.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Child Theme funcions.php breaks site’ is closed to new replies.