Last active
December 28, 2018 18:14
-
-
Save maksimerohin/aeea7617ebb6db10d3e5587ab6ec1925 to your computer and use it in GitHub Desktop.
Подключение стилей и скриптов
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function me_ipapus_scripts() { | |
wp_enqueue_style( 'me-ipapus-style', get_stylesheet_uri(), array(), filemtime( get_theme_file_path() . '/style.css' ) ); | |
wp_deregister_script( 'jquery' ); | |
wp_register_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'); | |
wp_enqueue_script( 'jquery' ); | |
wp_enqueue_script( 'me-bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), filemtime( get_theme_file_path() . '/js/bootstrap.min.js' ), true ); | |
wp_enqueue_script( 'me-functions', get_template_directory_uri() . '/js/functions.js', array('jquery'), filemtime( get_theme_file_path() . '/js/functions.js' ), true ); | |
} | |
add_action( 'wp_enqueue_scripts', 'me_ipapus_scripts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment