Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 of 7 tasks
amboutwe opened this issue Nov 21, 2024 · 1 comment

Comments

@amboutwe
Copy link
Member

amboutwe commented Nov 21, 2024

  • I've read and understood the contribution guidelines.
  • 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
  • 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
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant