[Trick] How to remove Yoast SEO ads in wordpress admin

1

Hello everyone! Have many questions send to my email about removing the the Yoast ads in wordpress admin. Today i will show you how to remove that shit. 🙂

Follow these steps below to remove Yoast ads in wordpress admin:

Step 1:

  • Find and open this file wordpress-seo-premium/admin/banner/class-admin-banner-sidebar-renderer.php.

Step 2:

Replace this function:
public function render( WPSEO_Admin_Banner_Sidebar $banner_sidebar ) {
return sprintf( '
<div class="wpseo_content_cell" id="sidebar-container">
<div id="sidebar">
<div class="wpseo_content_cell_title yoast-sidebar__title ">
%1$s
</div>
%2$s
</div>
</div>',
$banner_sidebar->get_title(),
$this->render_banner_spots( $banner_sidebar->get_banner_spots() )
);
}

with this function:
public function render( WPSEO_Admin_Banner_Sidebar $banner_sidebar ) {
return sprintf( '
',
$banner_sidebar->get_title(),
$this->render_banner_spots( $banner_sidebar->get_banner_spots() )
);

Step 3:

Go to admin and see the result. Make sure you will say WOWWWWW :)) lol.

Thanks and enjoy!

Before:

[Trick] How to remove Yoast SEO ads in wordpress adminAfter:

[Trick] How to remove Yoast SEO ads in wordpress admin

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here