Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to make a child theme in wordpress

add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );

function enqueue_parent_styles() {
   wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}
Source by www.smashingmagazine.com #
 
PREVIOUS NEXT
Tagged: #child #theme #wordpress
ADD COMMENT
Topic
Name
5+3 =