logo
  • Home
  • About
  • Services
  • Portfolio
  • Contact Us
  • Submit Guest post
DISABLE ADDING NOODP META ROBOTS TAG IN YOAST PLUGIN

DISABLE ADDING NOODP META ROBOTS TAG IN YOAST PLUGIN

February 28, 2016 19 comments Article SEO Website Designing

Hi Friends, After the research i find out the solution. How to disable adding noodp meta tag in yoast plugin on your website without harming other meta tags of seo.

What is the problem?

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

This above tag is showing on every page. This tag stops Google and Dmoz to catch it. In the yoast plugin this issue is there.

What is the solution?
You have to follow few steps to solve the issue. These steps are
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: Go to lines 1892 in same file.

Step6: You can see below code.

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


Step7:

Replace this code.

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 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.

Read About Other Interesting Things below.

  1. Free WordPress Theme Problems for Your Website
  2. How to Restore WordPress Website from Backup Manually
  3. How To Add New Default Gravatar Logo In WordPress
  4. Cpanel par wordpress kaise install kare
  5. WordPress Me New Widget Custom Area Kaise add Karte Hai
  6. WordPress Par Theme Kaise Change Karte Hai
  7. WordPress par blank theme kaise bnaye

I hope you will like Add Adsense Ads Between Posts In WordPress Without Any Plugin. If You found it useful please subscribe my blog.

Share this:

  • Tweet
  • Telegram
  • WhatsApp
  • Share on Tumblr
  • Pocket
  • Email

Related

Categories: Search Engine Optimization

19 comments

  • Chris February 29, 2016 at 1:53 pm - Reply

    Thanks

  • Julien March 24, 2016 at 5:24 pm - Reply

    Please, find a function to add in functions.php so that I don’t have to edit the file each time there’s an update
    thanx

  • admin March 25, 2016 at 5:20 am - Reply

    Ok Julien, I try to find out the solution

  • treks voyages March 29, 2016 at 1:50 am - Reply

    Hello, thanks for the solution

  • batu akik April 7, 2016 at 7:52 am - Reply

    thank you for your solution .. i made it ..

  • Noor Ahmed April 11, 2016 at 4:49 am - Reply

    This is Amazing !!!!
    This trick worked very good .
    Thanks alot

  • Marko April 23, 2016 at 6:57 pm - Reply

    Thanks for taking time to post this

  • moviesglobeblog June 22, 2016 at 8:31 pm - Reply

    thsnks bro

  • MD-ASIF July 13, 2016 at 7:23 am - Reply

    Thank you very much it is very helpful and working well. I would like to inform you i.e. after the latest update the codes are little different and you need only to replace the word with (false) in both the places in place of (true).

  • mostwantedxx July 31, 2016 at 1:09 am - Reply

    that was awesome. thaaanks a ton. let me kis you

    • SEO Website Designing August 11, 2016 at 9:37 am - Reply

      Most Welcome

  • N!ck August 6, 2016 at 3:28 am - Reply

    The real solution is to change from

    $this->options[‘noodp’] === false

    to

    $this->options[‘noodp’] === true

    and the final code will be

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

    In this way you can use “Force noodp meta robots tag sitewide” option into WP-ADMIN / Yoast plugin /
    Titles & Metas – Yoast SEO to switch on or off the noodp

  • SEO Website Designing August 11, 2016 at 9:19 am - Reply

    Hi Nick,
    Thank You For commenting

    I am appreciating your response but i wrote down my article for non developer who have less experience in coding.

  • James August 19, 2016 at 11:19 pm - Reply

    Perfect thank you

  • Voicu Alexandru November 7, 2016 at 12:54 pm - Reply

    This issue with noodp can drop sites in googl rank ?

  • SEO Website Designing December 2, 2016 at 6:47 am - Reply

    Yes it drop your website rank
    If you have removed the noodp tag from the code. you website rank is not drop by this code

  • mattpeytonphotography February 24, 2017 at 6:34 pm - Reply

    white screened my site…nice! Thanks…..

Leave a Reply Cancel reply

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,504 other subscribers

Categories

  • Angular (1)
  • Content Marketing (2)
  • Email Marketing (3)
  • Graphics Design (3)
  • Keyword Strategy (1)
  • Other (3)
  • Search Engine Optimization (10)
  • Social Media Optimization (4)
  • Website Design (67)
  • WordPress (18)
  • Subscribe to Blog via Email

    Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,504 other subscribers

  • Tag Cloud

    Add Social Share button in WordPress without Plugins Bootstrap center div on screen with flexbox center div vertically and horizontally in body center div vertically and horizontally responsive Center Elements Vertically And Horizontally Using Flex Centering in CSS Create Your Own Fast Social Sharing Buttons For WordPress Creating Scroll-based Animations using jQuery and CSS3 CSS CSS3 CSS3 Variables CSS custom properties CSS Variables custom share buttons wordpress Disable Mouse Right Click Using Jquery disable right click with jquery Disabling right mouse click menu facebook Get to Know the CSS Object Fit and Position Properties How Can You Use CSS Variables HOW TO CODE A RESPONSIVE EMAILER OR NEWSLETTER How to Create Social Sharing Button without any Plugin HOW TO DESIGN A RESPONSIVE EMAILER OR NEWSLETTER how to disable right click menu in html page How to prevent Right Click option using jquery How to Restore WordPress Website from Backup Manually How to use CSS Variables HTML HTML5 javascript jquery jQuery make div slide in when scrolling down page Know About CSS Object Fit and Position Properties Meta Tags Mysql object-fit object-fit/object-position object-position Responsive Website Sliding Div When Scroll Down Page Using Jquery Vertical Centering - Solved by Flexbox Webpage Scrolling Animation Effects with CSS3 & jQuery What You Need To Know About CSS Variables wordpress
  • Copyright SEO Website Designing 2015

    loading Cancel
    Post was not sent - check your email addresses!
    Email check failed, please try again
    Sorry, your blog cannot share posts by email.