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

enhancement - accordion wrap each tab inside div - SEO FAQ #299

Open
djmj opened this issue Jul 8, 2021 · 0 comments
Open

enhancement - accordion wrap each tab inside div - SEO FAQ #299

djmj opened this issue Jul 8, 2021 · 0 comments

Comments

@djmj
Copy link

djmj commented Jul 8, 2021

Currenty accordion markup consist of structure like:

<h3>Tab1</h3>
<div>content</div>

<h3>Tab2</h3>
<div>content</div>

This makes it impossible to use at a SEO optimized FAQ page since we need a surrounding div container to add the mata data attributes https://developers.google.com/search/docs/data-types/faqpage?hl=en

For example Tab 1 with surrounding div and meta data:

<div itemscope itemprop="mainEntity" itemtype="https://schema.org/Question">
    <h3 itemprop="name">Tab1/h3>
    <div itemscope itemprop="acceptedAnswer" itemtype="https://schema.org/Answer">
      <div itemprop="text">
        content
      </div>
    </div>
  </div>
@djmj djmj changed the title enhancement - accordion wrap each tab inside div enhancement - accordion wrap each tab inside div - SEO FAQ Jul 8, 2021
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

No branches or pull requests

1 participant