Skip to content

Instantly share code, notes, and snippets.

@wpsmith
Created August 18, 2012 01:20
Show Gist options
  • Select an option

  • Save wpsmith/3383785 to your computer and use it in GitHub Desktop.

Select an option

Save wpsmith/3383785 to your computer and use it in GitHub Desktop.
JS: Resizes Genesis Footer Widgets to Equal Heights (responsively)
<?php
add_action( 'wp_enqueue_scripts', 'wps_enqueue_refooterwidgets' , 15 );
/*
* Enqueue reFooterWidgets to the footer
*
*/
function wps_enqueue_refooterwidgets() {
wp_enqueue_script( 'wps-footer-widgets-height' , get_stylesheet_directory() . '/js/footer-widgets-height.js' , NULL , '1.0.0' , true );
}
@GaryJones
Copy link
Copy Markdown

Remove use strict from line 11. Applying it globally is asking for trouble. Move it to line 16.5.

Also consider running this code through JSHint and JSLint to apply some common code standards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment