Failed Test: Focus Keywords – There are 53 Templates with no focus keyword set.

#992806
  • Resolved Clicklabseo
    Rank Math free

    I am trying to use the SEO Analyzer and it keeps showing me that there are 53 Templates that are lacking a focus keyword. These Templates are saved parts of Beaver Builder pages. I create saved rows, modules, and full page templates that I later apply to a page as it is being built. But the templates themselves are not being indexed, and should not be included in the SEO Analysis, and should not have any SEO applied to them.

    I believe there is a way to exclude these using code in the functions.php, but I tried this using the post type “fl-builder-template” as this is what it shows in the URL when I click the link in the SEO Analyzer:
    MYWEBSITE.COM/wp-admin/edit.php?post_type=fl-builder-template&fl-builder-template-type=layout&fl-builder-template-category=0

    So I tried the following code:

    function rankmath_disable_features() {
    if(get_post_type() == 'fl-builder-template') {
    remove_all_actions( 'rank_math/head' );
    }
    }
    add_action( 'wp_head', 'rankmath_disable_features', 1 );

    This did not change anything and they are still being considered during the analysis. I have flushed the site cache and everything else I can think of to ensure the change to the functions.php has been applied.

    Any assistance would be greatly appreciated.

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

    We apologize for the issue you are facing with the SEO Analyzer showing templates without focus keywords. Thank you for providing detailed information about your setup and the code you attempted to use.

    To exclude specific post types from the Rank Math SEO analysis, you can use a filter in your functions.php file. The code you provided is not quite the right approach for excluding post types from the analysis. Instead, you can use the following code snippet:

    add_filter('rank_math/seo_analysis/exclude_post_types', function($post_types) {
        $post_types[] = 'fl-builder-template'; // Add your custom post type here
        return $post_types;
    });

    This code will add the fl-builder-template post type to the list of excluded post types in the SEO analysis. After adding this code, please ensure to clear your site cache again and check if the templates are still being included in the analysis.

    If you continue to experience issues, please reply to this ticket with your site URL so we can assist you further. A human agent from our support team will take over and provide more tailored assistance.

    Thank you for your understanding, and we hope this helps resolve your issue!

    Sources:
    Analyzing Your Site’s SEO with Rank Math’s SEO Analysis Tool

    I tried adding the suggested code to the functions.php, replacing the previous code I had gathered from the support forums, and ensuring it had the correct post type. I also cleared the cache to make sure everything was updated, but the SEO Analyzer still sees the templates as needing Focus Keywords, and displays them as an error. I am not sure if this even matters or affects the overall score, but I am trying to get this setup as clean as possible.

    Hello,

    In this case, head over to Rank Math > Status & Tools > Database Tools > and click the Clear SEO Analysis and Remove Transients buttons to flush the SEO Analysis cache

    image

    Clear your website and any server-level caching on your site before doing the Sitewide analysis again.

    If the post type is still getting included in the SEO Analyzer, then we might need to take a closer look at the settings. 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.

    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.

    This did not resolve the issue and the templates are still showing in the site analysis as errors. They are properly being excluded from the sitemap generation, so I am unsure why the site analysis does not exclude them as well.

    Unfortunately the site is currently under development so I am unable to backup the site and grant you access until the development is complete. I will respond as soon as possible with access information. I look forward to resolving the issue as it is the only issue I have found with Rank Math so far.

    Hello,

    Sure, let us know how this goes.

    Meanwhile, please don’t hesitate to contact us anytime if you have other questions to assist you further.

    Looking forward to helping you.

    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.

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

The ticket ‘Failed Test: Focus Keywords – There are 53 Templates with no focus keyword set.’ is closed to new replies.