Jquery plugin initialise conflict

Permalink
I am using this
[code}
<script type="text/javascript">
$(document).ready(function() {
$("#lightgallery").lightGallery();
});
</script>
[/code]
to initialise my plugin. However, if I put the code in the head OR the footer it conflicts with the edit bar script so I lose my editing button at the top.
Any ideas how to solve please?

trixiemay
 
Gondwana replied on at Permalink Reply
Gondwana
$().ready is probably overwriting (replacing) the system's event handler. Try adding your handler to the existing chain.