• Resolved wotnow

    (@wotnow)


    Is it possible to add anchor links to the Yoast Structured Data Blocks>FAQ Questions? So that other pages within the website can link to the FAQ questions?

    Thanks

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

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support marcanor

    (@marcanor)

    Hi @wotnow ,

    Thank you for suggesting a new feature for one of our plugins! You are actually not the first to have requested this feature! That means a feature request is already created and is currently under review?by our product team.

    As a workaround, you can switch in Gutenberg to “Code Editor” mode and manually add anchors to each FAQ/How-to header.

    What’s next?
    Our product team will assess feature requests in relation to other open bug reports and new features. Based on their assessment, the feature request will be given a priority. Our developers work on the highest priority first. Unfortunately, this means we cannot give you an estimate if or when they’ll start working on your request.

    If you have any further information that may affect the prioritization, please feel invited to reply to this email.

    Thread Starter wotnow

    (@wotnow)

    Thanks for getting back to me, good to know it will eventually be included. I am currently using a theme that has both WP Bakery and Gutenberg Editors. I was trying to work out what the header code is because as far as I can tell you cannot add one question and answer per row, they have to go in a block. Therefore adding an anchor tag to the header is only adding it to the block where there are many questions?

    Have I got that right?

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    Yeah, it sounds like you have got that right.

    Thread Starter wotnow

    (@wotnow)

    Thanks for confirming. So when the developers implement this feature, perhaps they can make it so that the anchor ID is per question and answer, not per block ??

    Thanks

    Thread Starter wotnow

    (@wotnow)

    Sorry so just to clarify, at the moment there is no workaround to manually add anchors to each FAQ, as there is only one header per block that contains many questions and answers. Is there any way to target individual questions?

    Hi @wotnow,

    Thank you for your replies.

    Actually, every question get’s an unique ID. However, you don’t see that when you are adding a FAQ and writing it visually. When you would go to the block options by using the 3 dots on the block, then choose Edit as HTML, you would see the HTML output of the block and you can see each questions’s ID tag. You should be able to use those ID’s to link to.

    Thread Starter wotnow

    (@wotnow)

    Fabulous thank you so much :0

    You’re most welcome!

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

    Thread Starter wotnow

    (@wotnow)

    <!– wp:yoast/faq-block {“questions”:[{“id”:”faq-question-1590891906036″,”question”:

    Not having much luck with the anchor .. would you mind providing the code?

    With the code above I have inserted “Content Management System” for “id” .. like so

    <!– wp:yoast/faq-block {“questions”:[{“Content Management System”:”faq-question-1590891906036″,”question”:

    This is the code I have used to call it

    Broome Car Carriers website is a CMS, Content Management System.

    I also tried this

    Broome Car Carriers website is a CMS, Content Management System.

    Neither of them work. Have I added the anchor to the wrong bit of code?

    Thanks

    Thread Starter wotnow

    (@wotnow)

    Sorry I used ..

    <!– wp:yoast/faq-block {“questions”:[{“CMS”:”faq-question-1590891906036″,”question”:

    Hi @wotnow,

    We see from your example you’re looking at the Code Editor for the page, which is not the same as the “Edit as HTML” option when you click on a block. See this screenshot.

    To get that option, you can take the following steps:
    1. Edit the FAQ block page
    2. Click the FAQ block, then select “Edit as HTML” from the block options menu.

    To create links to the FAQ questions, you must use the FAQ question element’s ID value. This is a generated number, so for the content management system question, it’s “#faq-question-1590891906036”

    Example FAQ Block ID (Edit as HTML):

    <div id="faq-question-1590891906036" class="schema-faq-section">
    <h2 class="schema-faq-question">What is a Content Management System?</h2>...

    Example Link in another page:
    Broome Car Carriers website is a CMS, <a href="https://www.test.kimberleywebdesign.com.au/services/web-design/#faq-question-1590891906036">Content Management System</a>

    To use #CMS in the link instead of #faq-question-1590891906036, you’ll need to edit the block as HTML and replace “faq-question-1590891906036” with “CMS”. Be sure to save the page.

    Thread Starter wotnow

    (@wotnow)

    Thanks so much priscilla .. worked perfectly:)

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hey @wotnow

    We’re glad to hear that you’re now able to get the anchor links working properly now. We’ll be setting this forum topic to resolved to keep the forum overview.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Yoast Structured Data Blocks adding an anchor link to the questions’ is closed to new replies.