-
Hi.
Thank you for the plugin.
I have a quick question regarding faq schema.
You mentioned in the tutorial that it is possible to add the FAQ block in multiple places in the post.
How will google decide which ones to show in SERP?
Thank you,
Alex
-
Hello,
Thank you for contacting Rank Math today.
For Google it will be just like one big FAQ block since it doesn’t care if you have 1 or 2 FAQ Blocks, it just checks the Schema and put together all the FAQ information.
Another thing is if Google will show it in SERPS since it is not something Google guarantees but if it shows it, it will be able to show all the questions you add to all the FAQ Blocks.
Looking forward to helping you. Thank you.
Thank you Alberto.
Regarding the same FAQ blocks. Do you know of a way to make them dropdowns? I imagine it’d be with js, which I can only copy/paste but not program with.
It would help a lot to have closed accordion-like questions in the article rather than the open ones.
Thank you for your help,
AlexHello,
Thank you for contacting Rank Math today.
You can check the custom code shared on this ticket: https://support.rankmath.com/ticket/i-used-css-to-modify-the-look-of-faq-schema/?view=all to turn your schema into accordions.
Looking forward to helping you. Thank you.
Thank you Michael.
I copied the css, but it doesn’t seem to fully work.
https://www.couplescoachingonline.com/know-each-other-long-distance/Hello,
Try adding this extra code I just did at the end:
div.rank-math-list-item:hover > div.rank-math-answer { max-height: 100vh; overflow: visible; } #rank-math-faq .rank-math-answer { padding:0; }
Looking forward to help you.
Thank you, Alberto.
I added the code and it looks good.
The only problem is that it doesn’t open/close on the click.
Alex
Hi Alex,
I am afraid we do not offer extensive support for CSS. The FAQ Block is added without any CSS and you are free to customize it the way you see fit.
As much as we would love to offer customized solution to each and every user we have, it just isn’t possible for a small company like ours with limited resources.
If you are facing any issue with any feature that we offer, we are always here to assist.
Hi Todd,
From the previous conversation, I assumed that the code that I was getting help with would work to show the content rather than just hide it.
So I don’t really see the value of your response!
I was getting the help, just something is missing and I would like to know what. If you are unwilling or unable to help, please allow the previous agent who was willing to help, do so.
Thank you
Hi Alex,
Sure, you can wait for a response.
Do note that you need JS to make the toggle work.
I know that it requires JS, I just don’t know which.
I’ve asked in fb group but the admin said to contact support here.
Then I was told that there’s already a solution, but it only had css.So now I’m stuck
Hello Alex,
Thank you for contacting Rank Math today.
Unfortunately there isn’t much more we can do. I’d recommend ti have a developer look into it and customize some JS for you.
Looking forward to helping you. Thank you.
ok.
Can you please just tell me this one thing:I found the code in w3school:below.
Could you just tell me what class do I need to use for rank math faq instead of .accordion?Thank you
<html>
<head>
<meta name=”viewport” content=”width=device-width, initial-scale=1″>
<style>
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}.active, .accordion:hover {
background-color: #ccc;
}.accordion:after {
content: ‘\002B’;
color: #777;
font-weight: bold;
float: right;
margin-left: 5px;
}.active:after {
content: “\2212”;
}.panel {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
</style>
</head>
<body><h2>Accordion with symbols</h2>
<p>In this example we have added a “plus” sign to each button. When the user clicks on the button, the “plus” sign is replaced with a “minus” sign.</p>
<button class=”accordion”>Section 1</button>
<div class=”panel”>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div><button class=”accordion”>Section 2</button>
<div class=”panel”>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div><button class=”accordion”>Section 3</button>
<div class=”panel”>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div><script>
var acc = document.getElementsByClassName(“accordion”);
var i;for (i = 0; i < acc.length; i++) {
acc[i].addEventListener(“click”, function() {
this.classList.toggle(“active”);
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + “px”;
}
});
}
</script></body>
</html>Hello,
The equivalent class in Rank Math is
.rank-math-list-item
Hope that helps.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.
The ticket ‘FAQ SERP’ is closed to new replies.