Popular Categories

How to disable Yoast SEO Plugin for a specific page?

I run into a problem, where i had to make Yoast SEO plugin off/disable for a page since i wanted to handle this SEO meta titles and description automatically via some piece of code. Here is the code which can help you achieve this:


function remove_wpseo(){
if (is_page(‘pagename’)) { /* pagenmae could be your slug of page, just replace it */
global $wpseo_front;
else {
$wp_thing = WPSEO_Frontend::get_instance();

Note: Place above code at the end of the functions.php file in your WordPress Theme.