fix figcaption in js

This commit is contained in:
infeeeee
2019-09-11 19:46:07 +02:00
parent 916439f4d5
commit 4766e59307

View File

@@ -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')