Please Review My functions.php Code
-
Hello,
Can someone let me know if the code below is added correctly? And if not, what am I doing wrong. Thanks.
<?php function lambert_child_enqueue_styles() { $parent_style = 'lambert-theme-style'; // This is 'lambert-style' for the Lambert theme. wp_enqueue_style ( $parent_style, get_template_directory_uri() . '/style.css', array( 'lambert-google-fonts', 'lambert-plugins', ), null ); wp_enqueue_style( 'lambert-child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style, 'lambert-responsive' , 'lambert-custom'), wp_get_theme()->get('Version') ); wp_enqueue_script( 'showhide.js', get_stylesheet_directory_uri() . '/js/showhide.js' ); } add_action( 'wp_enqueue_scripts', 'lambert_child_enqueue_styles', 'my_theme_scripts_function' );
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Please Review My functions.php Code’ is closed to new replies.