Answers for "enque script only on specific archive page"

CSS
0

enque script only on specific archive page

if (is_post_type_archive('archive-page')) {
	wp_enqueue_script('archive-page-script-js', get_template_directory_uri() . '/js/archive-page-js.js', [], false, true);
}
Posted by: Guest on October-05-2021

Code answers related to "enque script only on specific archive page"

Browse Popular Code Answers by Language