SEO Accordion Fix

Apraksts

This plugin ensures that content inside Elementor accordions (or any elements) is visible to users loading your content without JavaScript. Sometimes, Search engines like Google read your pages without JavaScript so we make sure the content in accordions is visible.

It works by adding the open attribute to all HTML tags server-side, making the content appear visible on initial page load.
Then, using a small JavaScript snippet, the plugin closes those accordions again after the page has finished loading – keeping a clean interface for users.

Uzstādīšana

  1. Upload the plugin to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. No configuration needed. It works automatically.

BUJ

Does this only work with Elementor accordions?

It works with any HTML element. Elementor’s accordion uses this tag structure by default.

Will this hurt my Core Web Vitals score?

It may slightly increase layout shift (CLS), but your SEO content visibility will drastically improve.

How can I test if the plugin is working?

You can simulate what Googlebot sees by disabling JavaScript in Chrome:
1. Open Chrome DevTools (F12 or right-click Inspect)
2. Press Ctrl+Shift+P (or Cmd+Shift+P on Mac) to open the Command Palette
3. Type “Disable JavaScript” and activate it
4. Reload the page — all FAQ accordions should appear open

If the content is visible with JS disabled, that means Google can see it too.

Atsauksmes

Par šo spraudni nav atsauksmju.

Autori un izstrādātāji

“SEO Accordion Fix” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

Tulkot “SEO Accordion Fix&#8221 savā valodā.

Vai jūs interesē attīstība?

Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.

Izmaiņu žurnāls

1.0.0

  • Initial release: automatically opens for SEO and closes them after load for users.