Manipulate Lightbox Caption with JS
-
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 :/
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login