fix figcaption in js
This commit is contained in:
@@ -811,12 +811,6 @@
|
|||||||
|
|
||||||
/* ------------------------- Click on small articles ------------------------ */
|
/* ------------------------- Click on small articles ------------------------ */
|
||||||
|
|
||||||
// $('article.home-small').click(function () {
|
|
||||||
// let href = $(this).children('a.thumbnailwrapper').attr("href")
|
|
||||||
// window.open(href, "_self")
|
|
||||||
// })
|
|
||||||
|
|
||||||
|
|
||||||
$(document).on({
|
$(document).on({
|
||||||
mouseup: function () {
|
mouseup: function () {
|
||||||
let href = $(this).children('a.thumbnailwrapper').attr("href")
|
let href = $(this).children('a.thumbnailwrapper').attr("href")
|
||||||
@@ -1060,7 +1054,7 @@
|
|||||||
/* ----------------------------- images, gallery ---------------------------- */
|
/* ----------------------------- images, gallery ---------------------------- */
|
||||||
|
|
||||||
//wrap old galleries
|
//wrap old galleries
|
||||||
$('.single-content>p').each(function () {
|
$('.single-content>p, .single-content>wp-caption').each(function () {
|
||||||
let nrOfImgs = $(this).children('img').length
|
let nrOfImgs = $(this).children('img').length
|
||||||
if (nrOfImgs > 1) {
|
if (nrOfImgs > 1) {
|
||||||
$(this).addClass('wp-block-gallery')
|
$(this).addClass('wp-block-gallery')
|
||||||
|
|||||||
Reference in New Issue
Block a user