-2

I am trying to add an image to all lightboxes. But I am getting the error $ is not a function.

Here is the code I am using:

<script>
$( document ).ready(function() {
    $(".fancybox-inner").append("<img style='position: absolute; right: 0; bottom: 0;' src='http://juvama.nl/wp-content/uploads/2014/02/stempel1.png'>");
});
</script>

Thank you.

Mark
  • 6,731
  • 1
  • 40
  • 38
hans kazan
  • 57
  • 6

1 Answers1

1

try to add jQuery to head

<head>
    <script language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
</head>
GuaHsu
  • 309
  • 3
  • 8