Support » Plugin: Yoast SEO » FAQ Block – HTML Code

  • Resolved erezspeiser

    (@erezspeiser)


    Hi

    I used the FAQ Schema block.
    In one of the answers I wanted to use a list (

    1. codes)
      I tried with the code option, but the code appeared as text.
      I edited the HTML manually and added the code. that worked, but when I open the page again the block editor it detects this as an error.

      Any solution?

      Thanks!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Pcosta88

    (@pcosta88)

    Hi,

    Yoast does not have an easy way to add a list inside of a FAQ block. You will need to experiment and edit the HTML of the block to add it. Most likely, you will need to add the right list tags <li> and </li> before the div tags.

    See image here for an example: https://pasteboard.co/IiVEISc.png

    Or the code below:

    <div class="schema-faq wp-block-yoast-faq-block"><div class="schema-faq-section"><strong class="schema-faq-question">Question 1 </strong> <p class="schema-faq-answer">Answer 1 <li> One </li> <li> Two </li> </p> 
    
    <strong class="schema-faq-question">Question 2 </strong> <p class="schema-faq-answer">Answer 2 <li> ABC </li>
    
    </div> </div>

    When we used that code, it appeared correctly on the front end. See image: https://pasteboard.co/IiVF3BY.png

    However, we thank you for suggesting a new feature for one of our plugins. We’re not working on it at the moment but we’ll create a feature request for making adding a list inside of a FAQ block easier, so our developers can consider this when planning updates.

    In the meantime, we suggest signing up for our newsletter as that is where we will announce product changes and updates. You can sign-up for it here https://yoast.com/newsletter/.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘FAQ Block – HTML Code’ is closed to new replies.