How to Crate a Child Theme for StanleyWP?

by zendot
3 replies
  • WEB DESIGN
  • |
Hello,

I have downloaded a theme from http://gentsthemes.com/demo/stanleywp/ and I'd like to create a child theme.

I followed the instructions from https://codex.wordpress.org/Child_Themes to the best of my (noob) knowledge.

Now I have style.css and functions.php files in stanleywp-child folder.

Style.css contains:

/* Theme Name: StanleyWP Child Theme URI: http://www.luciddreamgateway.com/wp/stanleywp-child/ Description: StanleyWP Child Theme Template: stanleywp Version: 1.0.0 */
Code (markup):

Functions.php contains:

<?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( 'bootstrap-style', get_template_directory_uri() . '/css/bootstrap.css' ); wp_enqueue_style( 'bootstrap.min.-style', get_template_directory_uri() . '/css/bootstrap.min.css' ); wp_enqueue_style( 'font-awesome-style', get_template_directory_uri() . '/css/font-awesome.css' ); wp_enqueue_style( 'font-awesome.min-style', get_template_directory_uri() . '/css/font-awesome.min.css' ); wp_enqueue_style( 'magnific-style', get_template_directory_uri() . '/css/magnific.css' ); wp_enqueue_style( 'wpbase-style', get_template_directory_uri() . '/css/wpbase.css' ); wp_enqueue_style( 'wpbase.min.-style', get_template_directory_uri() . '/css/wpbase.min.css' ); }
Code (markup):

The theme isn't working and I don't know why. :-/

Could anyone please have a look? I don't know what's wrong. Thank you!
#child #crate #stanleywp #theme

Trending Topics