Thickbox path fix for enqueue

<?php
function wpvp_enqueue_js(){
?>
<script type="text/javascript">
var tb_pathToImage = '<?php echo bloginfo('wpurl') ?>/wp-includes/js/thickbox/loadingAnimation.gif';
var tb_closeImage = '<?php echo bloginfo('wpurl') ?>/wp-includes/js/thickbox/tb-close.png';
</script>
<?php
wp_enqueue_style('thickbox');
wp_enqueue_script('thickbox');
}

add_action('wp_print_scripts', 'wpvp_enqueue_js');

?>

0 Comments

You must be logged in to post a comment.