Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function enqueue_jquery() {
- // retira o jquery padrão do wordpress, ok retirou
- wp_deregister_script('jquery');
- // Não esta adicionando este jquery, que é o que preciso, no código
- wp_enqueue_script(
- 'jquery',
- get_template_directory_uri() . '/js/jquery.js',
- array(), // don't make jquery dependent on jquery...!
- '1.11.1',
- true
- );
- }
- add_action('wp_enqueue_scripts', 'enqueue_jquery');
- function enqueue_styles_scripts() {
- //OK adicionou normal
- wp_enqueue_style(
- 'style-theme',
- get_stylesheet_uri(),
- array('bootstrap-css')
- );
- //OK adicionou normal
- wp_enqueue_style(
- 'bootstrap-css',
- get_template_directory_uri() . '/css/bootstrap.min.css'
- );
- //OK adicionou normal
- wp_enqueue_style(
- 'stylish-portfolio',
- get_template_directory_uri() . '/css/othercss.css'
- );
- //OK adicionou normal
- wp_enqueue_style(
- 'font-awesome',
- get_stylesheet_directory_uri() . '/css/font-awesome.css'
- );
- //Adicionou normal, mas como depende do jquery não esta funcionando
- wp_enqueue_script(
- 'bootstrap-js',
- get_template_directory_uri() . '/js/bootstrap.min.js',null
- );
- }
- add_action('wp_enqueue_scripts', 'enqueue_styles_scripts');
- //ok adicionou normal
- function wpse_ie_conditional_scripts() { ?>
- <!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
- <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
- <![endif]-->
- <?php
- }
- add_action( 'wp_head', 'wpse_ie_conditional_scripts' );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement