May 19, 2017

How to Remove noodp from Meta Robots of Website

Hi Friends, after the research I have found the solution of how to disable "noodp" in meta tag 

like this:                         <meta name="robots" content="noodp"> 

in yoast plugin on your WordPress website without harming other meta tags of SEO. 

Above meta tag is showing on every page. The issue is that, this tag stops Google and Dmoz to catch it in the yoast plugin. 

What is the solution? 

You have to follow of these few steps to solve this issue. The steps are below here:

Step1: Login your admin panel. 
Step2: On the left hand side click on plugin and then its editor. 
Step3: Choose the "Yoast Plugin" on top right side of a panel. 
Step4: In the right hand side find class-frontend.php and click on it. 
Step5: When you reach on lines 1892 in the same file. 
Step6: You will see below code. 

private function add_robot_content_noodp( $description ) { if ( ! ( empty( $description ) ) && $this->options['noodp'] === false ) { $this->options['noodp'] = true; } }

Step7: Replace the last highlighted "true" with "false

private function add_robot_content_noodp( $description ) { if ( ! ( empty( $description ) ) && $this->options['noodp'] === false ) { $this->options['noodp'] = false; } }

Step8: Save your file. 

After saving the file remove the cache (Ctrl+f5) and see the source code. 

<meta name="robots" content="noodp">

This Above code is not there. 

If it is still there than Go to SEO -> Titles & Metas -> Other and find you check the noodp or not.

Unchecked it and see the source code. 

Your problem will solve. 

2 comments:

  1. Thanks for sharing this. this is working on blog. thanks

    ReplyDelete
  2. Thank you so much for this very informational post...i was looking for this kind of solution...this is really very helpful blog.

    ReplyDelete

Thank You for commenting on our blog.