From 4766e59307215c6bb3083728f19b694e6707f373 Mon Sep 17 00:00:00 2001 From: infeeeee Date: Wed, 11 Sep 2019 19:46:07 +0200 Subject: [PATCH] fix figcaption in js --- js/scripts.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/js/scripts.js b/js/scripts.js index eaa54d3..1c3f1e1 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -811,12 +811,6 @@ /* ------------------------- Click on small articles ------------------------ */ - // $('article.home-small').click(function () { - // let href = $(this).children('a.thumbnailwrapper').attr("href") - // window.open(href, "_self") - // }) - - $(document).on({ mouseup: function () { let href = $(this).children('a.thumbnailwrapper').attr("href") @@ -1060,7 +1054,7 @@ /* ----------------------------- images, gallery ---------------------------- */ //wrap old galleries - $('.single-content>p').each(function () { + $('.single-content>p, .single-content>wp-caption').each(function () { let nrOfImgs = $(this).children('img').length if (nrOfImgs > 1) { $(this).addClass('wp-block-gallery')