Hey guys,in this tut i'll show you how to remove Yoast ads.
I have got this question from some users and i decided to post this which will may be useful for other users also.
Let's start...
Find and open the file wordpress-seo-premium/admin/banner/class-admin-banner-sidebar-renderer.php
Replace this function:
with this:
In few words remove the div class
ENJOY
I have got this question from some users and i decided to post this which will may be useful for other users also.
Let's start...
Find and open the file wordpress-seo-premium/admin/banner/class-admin-banner-sidebar-renderer.php
Replace this function:
Code:
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:
Code:
public function render( WPSEO_Admin_Banner_Sidebar $banner_sidebar ) {
return sprintf( '
',
$banner_sidebar->get_title(),
$this->render_banner_spots( $banner_sidebar->get_banner_spots() )
);
}
In few words remove the div class
ENJOY