diff options
Diffstat (limited to 'baguette/baguetteLoad.js')
| -rw-r--r-- | baguette/baguetteLoad.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/baguette/baguetteLoad.js b/baguette/baguetteLoad.js new file mode 100644 index 0000000..a7178eb --- /dev/null +++ b/baguette/baguetteLoad.js @@ -0,0 +1,10 @@ +window.addEventListener("load", function() { + var options = { + captions : function(t) { + var e=t.parentElement.getElementsByTagName("figcaption")[0]; + return!!e&&e.textContent + } + }; + baguetteBox.run( ".wp-block-gallery", options); + baguetteBox.run( ".wp-block-image", options); +});
\ No newline at end of file |
