diff --git a/js/scripts.js b/js/scripts.js
index 1c3f1e1..b2a14de 100644
--- a/js/scripts.js
+++ b/js/scripts.js
@@ -1054,7 +1054,7 @@
/* ----------------------------- images, gallery ---------------------------- */
//wrap old galleries
- $('.single-content>p, .single-content>wp-caption').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')
@@ -1064,7 +1064,7 @@
})
//wrap images on old posts
- $('.single-content div.wp-caption img, .single-content>.wp-block-image>img, .single-content>.wp-block-gallery>img').each(function () {
+ $('.single-content>.wp-block-image>img, .single-content>.wp-block-gallery>img').each(function () {
let src = $(this).attr('src')
$(this).wrap('')
// $(this).parent('p').addClass('wp-block-image')
diff --git a/style.css b/style.css
index b14a6a8..e8d4a5a 100644
--- a/style.css
+++ b/style.css
@@ -2,7 +2,7 @@
Theme Name: dis-2019
Theme URI: https://git.gyetpet.dynu.net/infeeeee/dis-2019
Description: Designisso téma 2019 | Használati utasítás magyarul | Hibák, problémák jelentése
- Version: 1.0.5
+ Version: 1.0.6
Author: Gyetvai Péter
Author URI: https://gyetvai-peter.hu
Tags: Designisso