How to Enqueue Script and Style to Only Single and Archive Page of Custom Post Type

I have a custom Post Type called Movies with single-movies.php and archive-movies.php. can you please let me know how can I enqueue a CSS and scripts for those pages only?

if ( is_single(‘Custom Post Type’) ) {
// Enqueue scripts and Styles
}

Read more here:: How to Enqueue Script and Style to Only Single and Archive Page of Custom Post Type

Leave a Reply

Your email address will not be published. Required fields are marked *