Integrating with Theme.co Pro

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    We are extremely sorry but this is something that needs to be added by Theme.co just as they have done for the Yoast plugin.

    We cannot add it into Rank Math and in any case – Theme.co will need to provide you more details of the code they added for Yoast.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thanks, I guess I just want to make sure if I create a js file add the content from this article:
    https://rankmath.com/kb/content-analysis-api/

    That it will work. Is there something I could test for to make sure it is working?

    It seems straight forward from the Theme.co Pro side. I just need to add the functions code:

    wp_enqueue_script( 'rank-math-integration', DIR . '/js/rank-math-integration.js', array( 'rank-math-post-metabox' ), false, true );
    RankMathApp.registerPlugin( 'plugin-name' );
    wp.hooks.addFilter( 'rank_math_title', 'plugin-name', callback_function_to_fetch_title ) // This will hook into title analysis data.
    wp.hooks.addFilter( 'rank_math_content', 'plugin-name', callback_function_to_fetch_content ) // This will hook into content analysis data.

    Hello,

    The best way to test it would be creating a page using it and adding a focus keyword in Rank Math. After that, check if the content analysis from Rank Math is working with the content you created.

    Looking forward to help you.

    Thanks… I can certainly do that, but this script results in a critical error on my wordpress site:

    wp_enqueue_script( 'rank-math-integration', DIR . '/js/rank-math-integration.js', [ 'wp-hooks', 'rank-math-analyzer' ], false, true ); 
    RankMathApp.registerPlugin( 'plugin-name' );
    wp.hooks.addFilter( 'rank_math_title', 'plugin-name', callback_function_to_fetch_title ) // This will hook into title analysis data.
    wp.hooks.addFilter( 'rank_math_content', 'plugin-name', callback_function_to_fetch_content ) // This will hook into content analysis data.

    I have created the js file and it is in the correct directory with code from this page:
    https://github.com/MyThemeShopTeam/WP-Review/blob/new-analysis/admin/assets/js/rank-math-integration.js

    • This reply was modified 2 weeks, 2 days ago by Andrew Rice.

    Hello,

    That is not a copy/paste type of code. The code is provided only for reference. It is best that you ask the theme developer to add that after changing the code.

    If they are not able to do it right now, perhaps in the future. For now, you can ignore the scoring or copy/paste the content into a regular block editor and then check the score there. Make changes based on the tests we run on that draft post.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this ticket.