Created
September 17, 2013 00:18
-
-
Save lrdiv/6588483 to your computer and use it in GitHub Desktop.
default_hooks.php
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
<?php | |
// This function include screen.css in wp_head() function | |
function enqueue_stylesheets() { | |
wp_register_style("screen", stylesheet_url("screen"), false, false); | |
wp_enqueue_style("screen"); | |
} | |
add_action('wp_enqueue_scripts', 'enqueue_stylesheets'); | |
// This function include jquery and application.js in wp_footer() function | |
function enqueue_javascripts() { | |
wp_register_script("jquery", '//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js', '', false, true); | |
wp_enqueue_script("jquery"); | |
wp_register_script("application", javascript_url("application"), '', false, true); | |
wp_enqueue_script("application"); | |
} | |
add_action('wp_enqueue_scripts', 'enqueue_javascripts'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment