Hello,
I apologize for the issue you are facing with collapsing the Table of Contents (TOC) blocks on your site. Since you’ve already added the necessary code to your functions.php
file and the CSS to your style.css
, it should ideally work as intended.
Here are a few troubleshooting steps you can try:
- Check for JavaScript Conflicts: Ensure that there are no other scripts on your site that might be conflicting with the jQuery code you added. You can do this by temporarily disabling other plugins or switching to a default theme to see if the issue persists.
- Inspect the Console: Open your browser’s developer tools (usually F12) and check the console for any JavaScript errors that might be preventing the script from executing.
- Verify jQuery is Loaded: Make sure that jQuery is properly loaded on your site. You can check this by typing
jQuery
in the console and seeing if it returns a function.
- Clear Any Caching: Even though you mentioned not having cache, ensure that any server-side caching or CDN caching is cleared, as it might still serve an older version of your site.
If you’ve gone through these steps and the TOC still does not collapse, please reply to this ticket with any error messages you find or additional details about your setup. A human agent from our support team will be able to assist you further.
Thank you for raising this concern!
Sources:
How to Add Rank Math’s Table of Contents Block » Rank Math
Hello,
Thank you for contacting us. We apologize for any inconvenience this issue may have caused.
Here’s a guide on how to correctly add custom CSS to your site:
https://www.wpbeginner.com/plugins/how-to-easily-add-custom-css-to-your-wordpress-site/
If the issue persists, we might need to take a closer look at your site.
Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
What’s the update on this?
What happend here, do I have a real human on this ticket?
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
You’re not using the Table of Contents block of our plugin. You’re using a block from another plugin. Please add our plugin’s TOC block if you want to make it collapsible using the guide.
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Oh wow, ok. I see that. This client told me it was yours, and although it doesn’t say Rank Math I thought it was too since they insisted it was. I have it collapsing now, Thank you!
Hello,
We are glad we could address your concern.
Please feel free to create a new forum topic if you do have another question in the future.
It will be our pleasure to assist you again.
Thank you.