SEO analysis for products reports text length as 0 words when using Elementor Pro and WooCommerce
- [x] I've read and understood the contribution guidelines.
- [x] I've searched for any related issues and avoided creating a duplicate issue.
Please give us a description of what happened
Yoast SEO is unable to see the text when Elementor Pro is active. This does not occur when Elementor free is active. The analysis works for non-products and when viewing the non-Elementor editor screen but shows 0 words after opening Elementor editor with their Pro version active.
Reported to Elementor support as well.
To Reproduce
Step-by-step reproduction instructions
Starting with a vanilla installation:
- Install and activate Elementor (free and pro) - Skip setup questions
- Add license to activate Elementor Pro
- Install, activate, and set up WooCommerce (options below)
- Go to Elementor > Settings > General > Post Types
- Check 'Products'
- Click 'Save Changes'
- Install and activate Yoast SEO (free)
- Go to Products > Add new product
- Enter a title for the new product like 'Sample product'
- Click 'Edit with Elementor'
- Drag the 'Text Editor' widget to the 'Drag widget here'
- Add a sentence of known length like 'One two three four five six seven eight nine ten'
- Click the gear icon in the top bar to access 'Product Post Settings'
- Click the Yoast icon and expand 'SEO analysis'
- Text length shows "contains 0 words" (worng)
- Save draft
- Click Elementor logo in top bar
- Click 'Exit to WordPress'
- Expand 'SEO analysis' in the Yoast meta box
- Text length shows "contains 10 words" (correct)
- Go to Plugins> Installed Plugins
- Deactivate Elementor Pro
- Check the same product again and see the text count is accurate in both places (Elementor and Classic)
WooCommerce Options
Introduction Uncheck 'I agree to share my data' Click 'Set up my store'
Step 1: Which one of these best describes you? Select 'I'm just starting my business' Click 'Continue'
Step 2: Tell us a bit about your store Enter store name (optionally leave it the domain) Select 'Clothing and accessories' for type of products Select 'United States (US) -- California' for the store location Click 'Continue'
Step 3: Get a boost with our free features Click 'Skip this step' (top corner of page)
Import Products (optional) Go to Admin > Products Click 'Start Import' Browse to WooCommerce plugin folder '\wp-content\plugins\woocommerce\sample-data' Select 'sample_products.csv' Click 'Continue' Click 'Run the importer' Wait for success message
Company address (optional) Address: 123 Main Street City: Beverly Hills State: California Zip code: 90210 Country: United States (US)
Expected results
Words to be counted
Actual results
Text length is 0 words
Screenshots, screen recording, code snippet
Additional details
Occurs with Hello Elementor or multiple default themes Occurs with or without Yoast SEO WooCommerce Occurs with or without Yoast SEO Premium Does not occur for non-products, like posts and pages
Technical info
- If relevant, which editor is affected (or editors):
- [ ] Block Editor
- [ ] Gutenberg Editor
- [x] Elementor Editor
- [ ] Classic Editor
- [ ] Other:
Used versions
- Device you are using: Desktop
- Operating system: Windows
- PHP version: 8.0
- WordPress version: 6.7
- WordPress Theme: Hello Elementor v3.1.1 | Twenty Twenty-Four v1.3
- Yoast SEO version: 23.8
- Elementor plugin version: Elementor v3.25.9 (also tested 3.25.6) AND Elementor Pro v3.25.4 (also tested 3.25.3, 3.25.0)
- Relevant plugins in case of a bug: WooCommerce v9.4.2 (also tested 9.4.1)
Please inform the customer of conversation # 1192728 when this conversation has been closed.
Did you manage to fix it? I am getting the same using now yoast version 24.3
Please inform the customer of conversation # 1226600 when this conversation has been closed.