Created
February 28, 2013 02:16
-
-
Save Coopeh/5053641 to your computer and use it in GitHub Desktop.
ESI included php file for loading the header images via jQuery
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 require_once('/var/www/wordpress/wp-load.php'); ?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function() { | |
jQuery('header.top-head').css('background-image', 'url(<?php header_image(); ?>)'); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment