Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function my_scripts_method() {
- wp_enqueue_script(
- 'custom-script',
- get_template_directory_uri() . '/js/custom_script.js',
- array('jquery')
- );
- }
- add_action('wp_enqueue_scripts', 'my_scripts_method');
- ?>
- custom-script.js
- jQuery(document).ready(function() {
- jQuery("table").each(function()
- // do stuff
- alert ("hello Holly");
- )};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement