fix figcaption in js
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user