Quantcast
Channel: help – WordPress.org Forums
Viewing all articles
Browse latest Browse all 13924

roncarletonaudio on "Need help creating child theme for Arcade Basic"

$
0
0

Oh wait, Im a little confused... so to enqueue editor-style.css, do I need to add the entire snippet of code like I did for the style.css

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_uri(), array( 'parent-style' ) );
}

and replace

wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );

with

wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/editor-style.css' );

directly underneath the style.css enqueue snippet on the .php?

And then just to clarify, for any .php file I want to edit, i need to make a new identical file in the child theme, copy and paste the entire code over and make my changes there or just the snippets of code I am wanting to change? Thanks again! Sorry for additional questions. So simple yet so foreign when you have never done it before :)


Viewing all articles
Browse latest Browse all 13924

Trending Articles