function custom_scripts(){
if( is_single() && get_post_type()=='books' ){
wp_enqueue_style( 'bootstrap', plugin_dir_url( __FILE__ ) . 'css/bootstrap.min.css' );
wp_enqueue_script( 'prism', 'https://cdnjs.cloudflare.com/ajax/libs/prism/1.4.1/prism.js');
}
}
add_action('wp_enqueue_scripts', 'custom_scripts');
Need Professional Support for Your Website Problems?
Whether you're facing website issues or struggling with code implementation, our team is here to assist. Hire us to get your website back on track.
Hire Us