• Resolved winex

    (@winex)


    Using shortcode in classic editor:
    [lightweight-accordion title=”Question” title_tag=”h3″ schema=”faq”]Answer[/lightweight-accordion]

    It does work well, but it adds <p> for some reason in answer part – https://prnt.sc/1vwdhbk

    • This topic was modified 3 years, 5 months ago by winex.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Andy Feliciotti

    (@someguy9)

    Thanks @winex taking a look, I believe it’s filtered to add P tags automatically and should be fine to be included in the markup. I’ll take a deeper look and see if I can add a hook to remove that functionality though.

    Thread Starter winex

    (@winex)

    I’ve checked meanwhile with people heavily involved in SEO, and all of them agree that <p> should not be in the schema. However they do use <a> and <strong> tags in FAQ schemas – so I don’t have specifics on what’s correct – only what’s the best practice.

    Thanks for looking into it more, it does the work for me as it is, in general.

    • This reply was modified 3 years, 5 months ago by winex.
    Plugin Author Andy Feliciotti

    (@someguy9)

    Hey @winex, checking in on this again, I see Google’s page about FAQ schema ( https://developers.google.com/search/docs/advanced/structured-data/faqpage ) says this:

    The full answer to the question. The answer may contain HTML content such as links and lists. Google Search displays the following HTML tags; all other tags are ignored: <h1> through <h6>, <br>, <ol>, <ul>, <li>, <a>, <p>, <div>, <b>, <strong>, <i>, and <em>.

    Seems like <p> is allowed so I am going to keep it outputting the way it is, since all other tags are ignored I am guessing anything should be safe in there in general.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘FAQ Schema includes HTML code’ is closed to new replies.