Hello,
Thank you for contacting Rank Math, and sorry for the unexpected delays and any inconvenience that might have been caused due to that.
I’m not quite sure whether I fully understand the question. But I’ll do my best and please let me know if I misunderstood.
Do note that setting noindex
to your page should remove it from being indexed on the search page.
With that said, could you please let us know and specify which area in our plugin causes incompatibility with your theme?
Looking forward to helping you with this one.
Hi;
This page is the education page.
https://ibb.co/4sBfqGD
https://www.unionakademi.com/egitimler/adli-bilisim-uzmanlik-egitimi/
–
From this tab, we can choose the courses to be followed.
https://ibb.co/BrL8PBX
–
After clicking on the courses, a URL like this is created.
https://www.unionakademi.com/egitimler/adli-bilisim-uzmanlik-egitimi/7735/
Since we cannot noindex, each course Title is indexed separately as “BLOG”. Open picture please.
–
https://ibb.co/jWvgYBB
Although we make noindex from the “courses” section in the picture, dozens of opened course pages do not close to the index.
Our site may go into spam if we don’t resolve it quickly.
–
Theme and plugin makers said that Rank Math is not compatible. I do not know why it happened. Maybe that’s it.
Hello,
We added the following code on your website which will set the lessons to be noindex
as you requested:
add_filter( 'rank_math/frontend/robots', function( $robots ) {
$lms_template = get_query_var('lms_template');
if( $lms_template == 'stm-lms-lesson' ) {
$robots['index'] = 'noindex';
$robots['follow'] = 'nofollow';
}
return $robots;
});
Now, it will take some time before Google starts deindexing those but the correct robots meta is now set on them.
Don’t hesitate to get in touch if you have any other questions.
Thanks for support! Good Luck
Hello,
Glad that helped.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.