Manipulate Lightbox Caption with JS
Addons
2
Posts
2
Posters
233
Views
1
Watching
-
Hi Armin,
i was fiddling around with the Lightbox caption and could not manage to manipulate it with JS. The caption itself looks like this:
<p class="custom-lightbox-caption">My Caption Text</p>the JS:
<script> window.laytheme.on("newpageshown", function(){ jQuery('.sitetitle-txt-inner').parent().addClass('funny-test-class'); //Test if JS Works at all jQuery('.custom-lightbox-caption').addClass('funny-test-class'); //This does not work jQuery('.custom-lightbox-caption').parent().parent().addClass('custom-grid'); //This does not work jQuery('.custom-lightbox-caption').parent().addClass('custom-relative-caption'); //This does not work </script>Is it not possible to manipulate the Lightbox with js this way?
Best
Felix -
hey sorry for the late reply
sorry dont have time to help you with custom code :/
Online Users
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com