/** * подключить child jQuery скрипт */ add_action( 'wp_enqueue_scripts', 'add_my_script' ); function add_my_script() { wp_register_script( 'mastaklance-script', get_stylesheet_directory_uri() . '/js/mastaklance.js', array('jquery') ); wp_enqueue_script('mastaklance-script'); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter