Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
After several users used that code you shared, I did an improved version that I shared in the following post https://support.rankmath.com/ticket/faq-can-i-use-page/#post-62541
Could you check it and let us know if it works for you?
Looking forward to helping you. Thank you.
Hi Alberto,
Thank you for your reply!
Sorry, I linked to the wrong post, I currently have that code on my site (+ the updated version from Alessio – your code for functions.php didn’t work for me either), but the arrow doesn’t move down once selected.
Also, isn’t this an idea to add this as feature request for a future Rank Math update?
Greetings,
Richard
Hello,
We usually don’t provide coding support since we are a small team and providing it is outside of our possibilities but if you want, add a link to a post with a FAQ block on it (in the Sensitive Data) and I will check it to see if there is a quick solution.
About adding it to Rank Math, maybe in a future update, but we try to keep it as basic as possible to allow users to customize it to fit their needs and themes.
Looking forward to help you.
Hello,
I guess you are using Javascript to expand the FAQ elements. In the click event, when the FAQ expands, you will need to add the class expandedFAQ
to the h3 that is being expanded.
When the expanded block is being closed, you will need to remove the class expandedFAQ
from the h3.
And also add to the CSS styling the FAQ Block, the following code:
#rank-math-faq .rank-math-list-item h3.expandedFAQ:before {
transform: rotate(90deg);
}
Looking forward to help you.
Hello Richard,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.
Can you give me the code that create “class expandedFAQ” to the h3″?
-
This reply was modified 4 years, 3 months ago by Souvik.
Hello,
That class was added by the user who created the post, it is not one it is added by default with Rank Math, so we don’t have that code.
If you are trying to expand your FAQ blocks, you could try this code: https://support.rankmath.com/ticket/faq-can-i-use-page/
Looking forward to help you.
Hi Souvik,
Sorry, I don’t have the code yet; I saved it for later.
– Richard
Hello,
Thank you Richard for chiming in..
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.