Yoast / wordpress-seo

Yoast SEO for WordPress
https://yoast.com/wordpress/plugins/seo/
Other
1.78k stars 894 forks source link

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

Open amboutwe opened 1 day ago

amboutwe commented 1 day ago

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

Used versions

amboutwe commented 1 day ago

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