Filter to enable Keyword in Bold Text test

#713264
  • Resolved EJES GIST
    Rank Math free

    I want rank maths analysis to check if one of my keywords is in bold or bold.

    I used this filter /**
    * Filter to enable Keyword in Bold Text test
    */
    add_filter(‘rank_math/researches/tests’, function ($tests, $type) {
    $tests[‘keywordInBoldText’] = true;
    return $tests;
    }, 10, 2 );

    But didn’t work. Any help?.

    I also want rank maths to check if one of my keywords is in Italics and underline

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

    I’m sorry to hear that you’re experiencing issues with the filter to enable the Keyword in Bold Text test. The code you’ve used seems to be incorrect. To enable the Keyword in Bold Text test, you can use the following code:

    /**
     * Filter to enable Keyword in Bold Text test
     */
    add_filter('rank_math/researches/tests', function ($tests, $type) {
        $tests['keywordInBold'] = true;
        return $tests;
    }, 10, 2 );

    As for checking if your keywords are in italics and underlined, Rank Math doesn’t have built-in tests for these specific cases. However, you can use custom code to create these tests. If you need assistance with that, please let us know.

    If you have any further questions or need additional help, feel free to ask.

    Sources:
    How to Disable Rank Math SEO Content Tests » Rank Math
    How to Make Your Theme Rank Math Compatible » Rank Math
    Enable Rank Math SEO on Elementor Templates » Rank Math

    EJES GIST
    Rank Math free

    I want to speak to Human

    Hello,

    Thank you for your query and we apologize for the confusion.

    That filter code only allows you to disable existing Content Analysis tests. It is not possible to add a new test as existing tests have their own logic which is hard coded by our developers.

    If we ever need to add a new test, the logic must be hard-coded to the plugin. You can’t simply add a non-existent test.

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

    EJES GIST
    Rank Math free

    Thanks

    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.

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

The ticket ‘Filter to enable Keyword in Bold Text test’ is closed to new replies.