- I want to customize the display of the red box and add some listening events on the green box check box.
my want page
I try to write my own js file to control the above listening event, but my js file doesn’t work
my php code :
add_action('wp_enqueue_scripts', 'multi_child_style');
function multi_child_style(){
wp_enqueue_style('parent-style', get_template_directory_uri() . '/style.css');
wp_enqueue_script( 'script', get_stylesheet_directory_uri() . '/admin/script.js', array( 'jquery' ),'',true );
}
my js code
jQuery(document).ready(function () {
console.log(‘hello world’);
})