As you asked here for enqueue scripts on specific page this is the way you can, also if you wants to add common script on all pages on front end you can simply use this code in your activated theme's functions.php
function enqueue_common_scripts() { wp_enqueue_script( 'my-scripts', get_stylesheet_directory_uri() . '/my-script.js', array( 'jquery' ), '1.0', true );
}
add_action( 'wp_enqueue_scripts', 'enqueue_common_scripts' );
but if you're looking for other user-friendly option then please mark this as resolved, and generate a new thread mentioning about that issue.
Thanks.
WordPress ...
ما را در سایت WordPress دنبال می کنید
برچسب : نویسنده : استخدام کار wpss بازدید : 199 تاريخ : شنبه 19 تير 1395 ساعت: 7:22