-
I followed the tutorial below published by rankmath: https://rankmath.com/kb/turn-faq-block-into-accordion/
This is working fine on computer. Even is I resize the screen, it is working as it should be. But if I visit the website from a mobile then this accordion is not working. You can check this screenshot:
I did some troubleshot. Here is what I did and what I find out.
So first I only used the css and didn’t use the php code. I saw that the accordion is not working, just like the way it didn’t work on mobile. Then I used the PHP code and so it started to work fine but only on desktop.So what I think is maybe this problem is happening because of the php code. Maybe this code need to be modified to work on mobile too. As I do not know PHP and this tutorial was published by RankMath, so I am asking the RankMath team, please fix it.
One more thing. I know the image you saw, the accordion is looking different. Because I have customized the CSS. But the RankMath CSS is also giving the same result.
Hi Rank Math Team,
I’m writing to report an issue with the FAQ accordion functionality in the Rank Math FAQ Block. I followed the helpful tutorial you provided here: Link to tutorial
While the accordion works perfectly on desktop and resizes smoothly, it doesn’t function on mobile devices.
For your reference, I’ve attached a screenshot showcasing the issue:
Troubleshooting Steps Taken:
I initially tried using only the CSS from the tutorial, but the accordion remained non-functional on mobile.
When I added the PHP code, the accordion worked on desktop, but not on mobile.
This leads me to believe the issue might be related to the PHP code requiring adjustments for mobile responsiveness. Unfortunately, I’m not familiar with PHP coding, and since the tutorial originates from Rank Math, I’d like to request your assistance.Additional Note:
The screenshot might show a slightly different accordion style due to my custom CSS, but the issue persists even with the default Rank Math CSS.
You can see the problem in live by visiting this URL: http://devsite.rf.gd/test-post/Thank you for your time and support. I look forward to your solution!
The ticket ‘FAQ Accordion Not Working on Mobile – Rank Math FAQ Block’ is closed to new replies.