From f22615c6d5dbde94271a200afbc0820996c265ca Mon Sep 17 00:00:00 2001 From: jknapp Date: Sun, 15 Feb 2026 12:25:23 -0800 Subject: [PATCH] Fix single product parsing after Fourthwall HTML change Fourthwall changed product title tags from h1 to h2 on individual product pages, breaking the fourthwall_random and fourthwall_single shortcodes. Updated XPath query to match new h2 tag structure. Co-Authored-By: Claude Opus 4.6 --- libs/shortcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/shortcode.php b/libs/shortcode.php index a06eb0e..8ebe3cc 100644 --- a/libs/shortcode.php +++ b/libs/shortcode.php @@ -159,7 +159,7 @@ function fwembed_parse_single_product($html_content, $url, $show_description = f $xpath = new DOMXPath($dom); // Extract product information - $productTitle = $xpath->query('//h1[@class="product-info__title"]'); + $productTitle = $xpath->query('//h2[@class="product-info__title"]'); $productPrice = $xpath->query('//span[@class="product-info__price product-info__price--original"]'); $productImage = $xpath->query('//div[@data-gallery="gallery-slide"][1]//img[@class="gallery__image-object"]'); $productDesc = $xpath->query('//div[@class="product-info__description"]//div[@class="html-formatter"]');