Skip to content

fix(selectors): strip Elementor off-canvas menu widgets - #541

Open
EnesKartal wants to merge 1 commit into
kepano:mainfrom
EnesKartal:fix/elementor-off-canvas-removal
Open

EnesKartal wants to merge 1 commit into
kepano:mainfrom
EnesKartal:fix/elementor-off-canvas-removal

Conversation

@EnesKartal

Copy link
Copy Markdown
Contributor

Fixes #529

Summary

  • Added elementor-widget-off-canvas to PARTIAL_SELECTORS in src/constants.ts so Elementor off-canvas navigation widgets are stripped as clutter instead of being scored as main article content.
  • Added a regression test in tests/selector-removals.test.ts.

Verification

  • npx vitest run tests/selector-removals.test.ts tests/partial-selectors-regex.test.ts (2 test files, 1,129 tests passed)
  • npm run lint:unused (passed)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Elementor off-canvas menu picked as main content since 0.19.7

1 participant