Log in

How to remove Yoast ads

Apanha

Staff member
 


Participated
€223.43
Sep 29, 2016
28,378
1,055
4,191
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:
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
 

Attachments



Mar 10, 2017
11
1
1
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:
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

Using Yoast 9.0 - This directory doesn't exist: wordpress-seo-premium/admin/banner
 

Apanha

Staff member
 


Participated
€223.43
Sep 29, 2016
28,378
1,055
4,191
Using Yoast 9.0 - This directory doesn't exist: wordpress-seo-premium/admin/banner
You're right mate,from v9.x.x yoast in fact needs some changes on the code to remove the ads.
Will do this on the next release.
 

skaox

 


Oct 19, 2016
5
1
1
Solution for 9.2 ;

/wordpress-seo-premium/admin/class-yoast-form.php

Line 186->199 just remove line 187->198
 

Apanha

Staff member
 


Participated
€223.43
Sep 29, 2016
28,378
1,055
4,191
Solution for 9.2 ;

/wordpress-seo-premium/admin/class-yoast-form.php

Line 186->199 just remove line 187->198
Don't need,we remove the ads before we upload
 

skaox

 


Oct 19, 2016
5
1
1
Sure premium is activated with your version (yoast-dummy-license) so no sidebar.

it was just in case, for info, learning,... My apologies if it was inappropriate.

By the way, thank you for what you're doing ;-!
 
Last edited:

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Community Posts

Public Zone Posts

About us

  • NulledFire.com is one of the most comprehensive repositories under the terms of GPL (GNU General Public License v3.0 Free as in Freedom) that provides premium Plugins, Themes and PHP Scripts for testing purposes.
    We promote WP codes to the users globally so that you can check it before buying from the original developer/designer.

User Menu

NulledFire Statistics

Posts
28,096
Comments
55,647
Members
12,437
Latest member
malodo