Hello,
We apologize for the issue you are facing with Elementor and Rank Math. It seems like you’re trying to skip the registration requirement for development purposes, but it’s not working as expected.
To enable Rank Math SEO on Elementor templates, you may need to add a specific filter to your theme’s rank-math.php
file. Here’s how you can do it:
-
Create or Open the rank-math.php
File: If you haven’t already created a rank-math.php
file in your theme’s directory, you can create one in the path wp-content/themes/theme-name/rank-math.php
, where theme-name
is your active theme.
-
Add the Filter Code: Add the following code snippet to the rank-math.php
file:
/**
* Filter to enable Rank Math SEO on Elementor templates
*/
add_filter( 'rank_math/excluded_post_types', function( $post_types ) {
$post_types['elementor_library'] = 'elementor_library';
return $post_types;
}, 11 );
Make sure to include an opening PHP tag at the beginning of the file: `
Sources:
Enable Rank Math SEO on Elementor Templates » Rank Math
Hi, we tried this way but it doesn`t fix the problem.
Hello,
I’ve checked your site, and it seems that you’re using Rank Math PRO, but the account you have used to open this ticket is the Rank Math free version.
Can you please search and forward a receipt from FastSpring.com or the email address you used to purchase so we can locate your account and verify it?
We have already fixed the Elementor issue in one of the updates of our plugin v3.0.77.1:
https://rankmath.com/changelog/pro/
Looking forward to helping 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.