wordpress-seo icon indicating copy to clipboard operation
wordpress-seo copied to clipboard

SEO analysis for products reports text length as 0 words when using Elementor Pro and WooCommerce

Open amboutwe opened this issue 1 year ago • 3 comments

  • [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:

  1. Install and activate Elementor (free and pro) - Skip setup questions
  2. Add license to activate Elementor Pro
  3. Install, activate, and set up WooCommerce (options below)
  4. Go to Elementor > Settings > General > Post Types
  5. Check 'Products'
  6. Click 'Save Changes'
  7. Install and activate Yoast SEO (free)
  8. Go to Products > Add new product
  9. Enter a title for the new product like 'Sample product'
  10. Click 'Edit with Elementor'
  11. Drag the 'Text Editor' widget to the 'Drag widget here'
  12. Add a sentence of known length like 'One two three four five six seven eight nine ten'
  13. Click the gear icon in the top bar to access 'Product Post Settings'
  14. Click the Yoast icon and expand 'SEO analysis'
  15. Text length shows "contains 0 words" (worng)
  16. Save draft
  17. Click Elementor logo in top bar
  18. Click 'Exit to WordPress'
  19. Expand 'SEO analysis' in the Yoast meta box
  20. Text length shows "contains 10 words" (correct)
  21. Go to Plugins> Installed Plugins
  22. Deactivate Elementor Pro
  23. 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

screenshot_226 screenshot_227

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)

amboutwe avatar Nov 21 '24 00:11 amboutwe

Please inform the customer of conversation # 1192728 when this conversation has been closed.

amboutwe avatar Nov 21 '24 01:11 amboutwe

Did you manage to fix it? I am getting the same using now yoast version 24.3

tomekkie avatar Feb 01 '25 10:02 tomekkie

Please inform the customer of conversation # 1226600 when this conversation has been closed.

rmarcano avatar Feb 21 '25 17:02 rmarcano