Hello,
Thanks for contacting us today.
We would be happy to help with adding the code. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
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.
Hi there,
Thanks for getting back to us.
File editing has been disabled on your site and thus I could not test the following code, please add it to your theme’s functions.php file:
/**
* Filter to add plugins to the TOC list.
*
* @param array TOC plugins.
*/
add_filter( 'rank_math/researches/toc_plugins', function( $toc_plugins ) {
$toc_plugins['luckywp-table-of-contents/luckywp-table-of-contents.php'] = 'LuckyWP Table of Contents';
return $toc_plugins;
});
Let me know how this goes. Thank you.
Hi Michael,
This is exactly the code that I had already added to my site’s child-theme – as said in my first post…
It is still not working I’m afraid.
Thanks,
Hi there,
Thanks for the follow up.
Since for a strange reason this does not seem to work, you can also remove the test and add this score[2] to another test using the following code on your theme’s functions.php file:
/**
* Rank Math snippet to disable 'titleHasNumber' & 'contentHasTOC' tests.
*
* @param array $tests Array of tests with score
* @param string $type Object type. Can be post, user or term.
*/
add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
unset($tests['content-readability']['contentHasTOC']);
$tests['basic']['keywordInMetaDescription']['score'] = 4;
return $tests;
}, 10, 2 );
I hope this info helps. Thank you.
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.