-
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=0So 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.
The ticket ‘Failed Test: Focus Keywords – There are 53 Templates with no focus keyword set.’ is closed to new replies.