Javascript Problem w/ WordPress Shutter Reloaded Plugin

July 7, 2009

Development


<!--end sidebar-->
<script type="text/">
//<![CDATA[
shutterSettings = {
	imgDir : 'http://www.paulhobson.com//wp-content/plugins/shutter-reloaded/menu/',
	imageCount : 1,
	L10n : ["Previous","Next","Close","Full Size","Fit to Screen","Image","of","Loading..."]
}
//]]>
</script>
<script src="http://www.paulhobson.com//wp-content/plugins/shutter-reloaded/shutter-reloaded.js?ver=2.3" type="text/javascript"></script>

<script type="text/javascript">
try{shutterReloaded.init('sh');}catch(e){}</script>
</div>

For a reason that I can’t figure out, the WordPress echoing out the javascript references at the close of my side bar and not after my content below my body tag. This doesn’t make sense because it’s making use of the “add_action(‘footer’, function_name)” WP function that my other plugins use, and my other plugins are behaving correctly. I’ve tried numerous tweak and eventually just hard coded the reference in my HTML until I can figure this out. This way it still works for my image page in the footer of my page, but I lose the ability to customize me option from the WordPress Admin Dashboard. Frustrating…

, , , , ,

Trackbacks/Pingbacks

  1. Posts about plugins as of July 7, 2009 | All About WordPress - July 7, 2009

    [...] playing nice .  Anyway I put another 50 cen&#116&#32&#105n the meter and poked it with a stick Javascript&#32&#80&#114oblem w/ WordPress Shutter Reloaded Plugin – paulhobson.com 07/0&#55&#47&#50009 //<![CDATA[ shutterSettings = { imgDir : [...]

Leave a Reply