Created
December 5, 2013 20:06
-
-
Save shazdeh/7812930 to your computer and use it in GitHub Desktop.
Trigger window resize event on page load
This file contains hidden or 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 | |
| function custom_footer_scripts() { ?> | |
| <script> | |
| jQuery(window).load(function(){ jQuery(window).resize(); }); | |
| </script> | |
| <?php } | |
| add_action( 'wp_footer', 'custom_footer_scripts', 99999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment