Welcome to GPLDL - we are still beta - please report any bugs via the contact form.

GPLDLGPLDL
GPLDL
Download the most popular GPL licensed Premium WordPress Themes & Plugins and WooCommerce Extensions for FREE!
  • Blog
    • Blog Articles
    • Latest Updates & Additions
  • Repository
    • Full Repository
    • Premium WordPress Themes
    • Premium WordPress Plugins
    • Premium WooCommerce Extensions
    • Special Gifts for Premium Members
    • Tutorials
  • Forum
  • Free Membership
  • Donations
  • My GPLDL Account
  • Sign In
Menu back  

Get rid of Yoast SEO Premium nagging

  • This topic is empty.
Viewing 30 posts - 1 through 30 (of 51 total)
1 2 →
  • Author
    Posts
  • December 24, 2015 at 4:43 pm #16518
    Penny Dreadful
    Participant

    Hi, guys:

    do you know how to remove the persistent nagging of Yoast?

    After installing the Yoast SEO Premimu plugin, this message below perched on top of my WordPress Admin page permanently with a big red bar in front of it. Very annoying. Any advice on how to remove it would be highly appreciated!

    Warning! You didn’t set your Yoast SEO Premium license key yet, which means you’re missing out on updates and support! Enter your license key or get a license here.

    Cheers!

    December 24, 2015 at 5:50 pm #16519
    Claude Turing
    Participant

    If you like to dive into your functions.php you can check this out:

    Links to Github:
    Remove Yoast SEO nag after update

    or maybe this will help with the Yoast premium version:

    SO Clean Up Yoast SEO

    Tada

    December 24, 2015 at 6:02 pm #16521
    Penny Dreadful
    Participant

    Thank you so much, Claude, really appreciate your help! :-)

    December 24, 2015 at 6:05 pm #16522
    Claude Turing
    Participant

    Did it work? And in case of a yes: option A or B? Maybe nice for others to know which route you went.

    Merry xmas

    December 24, 2015 at 6:18 pm #16523
    Penny Dreadful
    Participant

    I have not implemented either just yet, still reading on the both options.
    For option A, do I need to copy the whole thing into my funtions.php? I guess I need to create a Child theme for this? otherwise, it will get lost during next theme update?

    Happy Holidays to you too!

    December 25, 2015 at 4:26 am #16524
    Claude Turing
    Participant

    Hi,

    Yes: for option A it is best to create a child theme and add the content to the functions.php file. You could create a very basic child theme with the minimum required files.

    You could also create a plugin and add the content from option A. A great plugin to create a plugin is Pluginception and can be found on the official WordPress plugin repo here

    The benifit of this is that you can change theme whenever you like and keep the plugin running.

    December 25, 2015 at 3:32 pm #16525
    Penny Dreadful
    Participant

    Just a quick feedback, Claude, tried option B, the plug in got good reviews, but it does not work for my purpose, that Yoast nagging message still sit on top of Admin page after I installed and activated it.

    December 27, 2015 at 9:14 am #16527
    Claude Turing
    Participant

    Hi,

    I have looked into this a bit further and I am afraid it will need some custom css in the admin pages to hide the Yoast nag. I will see if I can find the time to figure out a solution. ATM the best (savest) way is to simply hide the div.error with visibility: none.

    December 27, 2015 at 9:33 am #16528
    Claude Turing
    Participant

    Hi,

    add this to your functions.php

    
    // remove yoast premium seo nag from admin dashboard
    add_action('admin_head', 'remove_yoast_license_nag_from_admin_page');
    
    function remove_yoast_license_nag_from_admin_page() {
    	echo '<style>
    		div.error {
    			display: none;
    		}
    	</style>';
    }
    

    A more elegant and theme switching proof way would be to create a plugin and add the content in there. Try pluginception to create one.

    Hope that helps

    • This reply was modified 9 years, 4 months ago by Claude Turing. Reason: underscore added and completed the function name. oopses
    • This reply was modified 9 years, 4 months ago by Claude Turing. Reason: proff should be proof
    December 27, 2015 at 10:38 am #16531
    Claude Turing
    Participant

    Since I was busy I created a full blown plugin to remove the license nag.

    No idea if a link to Dropbox is appreciated here, but in case not, here are the steps.

    1: create a directory (folder) and give it a name. I.e. “remove-yoast-seo-premium-license-nag-from-admin” (do not add the beginning ” and closing ” !);
    2: in this directory create a file and give it a name. I.e “remove-yoast-seo-premium-license-nag-from-admin”;
    2a: make sure the file end with .php I.e. “remove-yoast-seo-premium-license-nag-from-admin.php”;
    3: add the following content to your “remove-yoast-seo-premium-license-nag-from-admin.php file::

    
    <?php
    /**
     * Plugin Name: Remove Yoast SEO Premium License Nag
     * Plugin URI: https://yoast.com/wordpress/plugins/seo-premium/
     * Description: Removes the Yoast SEO Premium license nag from your WordPress Dashboard. If you like this plugin buy a license key and receive support.
     * Author: !yoast_de_valk
     * Author URI: https://yoast.com/about-us/joost-de-valk/
     * Version: 1.0.0
     * License: GPL2+
     */
    
    /**
     * Prevent direct access to files
     *
     * @since 1.0
     */
    if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    
    /**
     * Nothing fancy here, just some css injection into the WordPress admin head
     */
    
     // remove yoast premium seo nag from admin dashboard
    function remove_yoast_license_nag_from_admin_page() {
        echo
        '<style>
    		div.error {
    			display: none;
    		}
    	</style>';
    }
    
    add_action('admin_head', 'remove_yoast_license_nag_from_admin_page');
    

    4: save the file and its content;
    5: zip the directory (folder);
    6: install it to WordPress like any other “regular” plugin;
    7: Activate the plugin;
    8: done.

    Hope this helps.

    Claude

    • This reply was modified 9 years, 4 months ago by Claude Turing. Reason: spelling and clarification
    • This reply was modified 9 years, 4 months ago by Claude Turing. Reason: same
    • This reply was modified 9 years, 4 months ago by Claude Turing.
    December 27, 2015 at 11:24 am #16535
    Penny Dreadful
    Participant

    Works like a charm!
    Thank you Claude, this is the best holiday gift ever, you are my hero! :-)

    December 27, 2015 at 11:25 am #16536
    Claude Turing
    Participant

    Hi Penny Dreadful,

    No problem, enjoy a nag free admin dashboard!

    February 26, 2016 at 5:16 am #16800
    zaifhul imam
    Participant

    hey, does it still work even without the license key? Please answer

    February 27, 2016 at 12:30 pm #16806
    7h3h
    Keymaster

    @Claude: Thanks for adding these detail instructions! Great work and very much appreciated!

    April 21, 2016 at 1:27 pm #17040
    Kate H
    Participant

    Excellent tutorial, I used pluginception and it worked like a charm!

    Many thanks Claude

    May 20, 2016 at 11:25 pm #17132
    Nathan Oldfield
    Participant

    Thanks for your efforts Claude!

    I’m assuming that will remove all errors not just Yoast ones?

    Nathan

    June 8, 2016 at 8:02 am #17269
    Droleba Satgalab
    Participant

    if you have downloaded this plugin from GPLDL and want to remove the activation message, please follow these steps:

    Open your FTP/Cpanel:
    Browse to this location \\website.com\wp-content\plugins\wordpress-seo-plugin\vendor\yoast\license-manager

    Open the file “class-license-manager.php“

    Go to Line # 116

    Replace the line “if ( ! $this->license_is_valid() ) {”

    With the line “if ($this->license_is_valid() ) {”


    “Cheers”

    • This reply was modified 8 years, 11 months ago by Droleba Satgalab.
    June 27, 2016 at 6:44 pm #17394
    Penny Dreadful
    Participant

    Hi Droleba, thanks for the tip, it works!

    I found the code on line #112.

    Is there a way to automate this? It would be a hassle having to modify the code manually every time this plugin is updated.

    July 21, 2016 at 9:09 am #17558
    Piki Kiki
    Participant

    Hello,

    I created acc just to say thank you. Works like a charm!!!

    September 2, 2016 at 6:06 pm #17790
    Wakiki
    Participant

    Claude’s https://gpldl.com/topic/get-rid-of-yoast-seo-premium-nagging/#post-16531
    works like a charm!

    THANK YOU

    December 17, 2016 at 6:34 pm #18246
    Joe Payton
    Participant

    I just want to point out, This will hide all messages from plugins and core that use the error class. You could potentially miss an important message. Just an FYI. I am looking for a better way to supress the message but yoast uses a really simple function. You can remove the function from the plugin file but that gets overwritten on update.

    January 17, 2017 at 4:15 pm #18371
    frz
    Participant

    Thanks to Droleba I made a script to make fixing Yoast SEO Premium easier.

    Unzip the plugin, run this bash script in the same folder. Tested on Ubuntu 16.04.

    #!/bin/sh
    version=grep "Version: " ./wordpress-seo-premium/wp-seo-premium.php | rev | cut -d " " -f1 | rev

    sed -i ‘s/\! $this->license_is_valid()/$this->license_is_valid()/’ ./wordpress-seo-premium/vendor/yoast/license-manager/class-license-manager.php

    zip -r -9 wordpress-seo-premium-$version-fixed.zip ./wordpress-seo-premium

    The forum mangled it, see the pastebin instead.

    • This reply was modified 8 years, 3 months ago by frz.
    • This reply was modified 8 years, 3 months ago by frz.
    • This reply was modified 8 years, 3 months ago by frz. Reason: forum keeps borking stuff in code tags
    February 9, 2017 at 9:41 am #18496
    David
    Participant

    For a quick light weight fix, use WP Nag Hide – https://wordpress.org/plugins/wp-nag-hide/

    March 2, 2017 at 7:38 am #18667
    Tom
    Participant

    Hello,
    Does anybody know how to remove the red link?

    Image and video hosting by TinyPic

    • This reply was modified 8 years, 2 months ago by Tom.
    March 5, 2017 at 7:07 pm #18674
    Nitko Kranjcar
    Participant

    Hi, the nagg is back again even with the fix. Could someone please adjust the fixing code?
    Thank you

    March 14, 2017 at 8:38 am #18701
    Krishna Chowdary
    Participant

    Hi,Nag is back again..Someone adjust the fixng code
    Thanks in Advance

    March 24, 2017 at 3:18 pm #18717
    CreativeBlip
    Participant

    In the functions.php code, replace div.error with div.yoast-notice-error

    April 30, 2017 at 6:20 am #18867
    Rick Rottman
    Member

    Open wordpress-seo-premium/vendor/yoast/license-manager/class-license-manager.php and remove lines 110 – 121.

    May 1, 2017 at 1:33 am #18882
    Uldis Z
    Participant

    If you use the method described before (create a plugin) and just follow this great advice “replace div.error with div.yoast-notice-error” then custom-made plugin works like a charm. Just tested. Thanks!

    May 8, 2017 at 9:14 am #18918
    Mohammad aghajani
    Participant

    Rick Rottman
    thanks

  • Author
    Posts
Viewing 30 posts - 1 through 30 (of 51 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In
Search the Repository
We reward your Donations!
We need your Donation to maintain and grow the GPLDL WordPress Repository - and we reward your generosity with Premium Memberships allowing you to download even more files.

Learn more about donations & rewards...
News from our blog
  • What is the Battle Between WordPress’s Matt Mullenweg and WP Engine about?
    October 31, 2024
  • Why GPLDL Cannot Accept Your WordPress Plugin or Theme Submission
    February 20, 2024
  • How to Ensure Your WordPress Plugin or Theme is Authentic and Secure
    January 25, 2024
Latest Updates & Additions
  • GPLDL News: 108 Updates & Additions today – Download 2842 Premium WordPress items!
    May 2, 2025
  • GPLDL News: 176 Updates & Additions today – Download 2840 Premium WordPress items!
    April 27, 2025
  • GPLDL News: 88 Updates & Additions today – Download 2838 Premium WordPress items!
    April 21, 2025
Free Downloads?

Most of the WordPress Plugins & Themes in the GPLDL repository are available for free download - yes, free! - that is even better than buying at a discount, rebate, promotion or with a coupon code.

After signing up for a free membership, you will instantly get a download link to GPLDL's WordPress plugins and themes including future updates.

Where is the catch? There is none. We re-distribute 100% exact copies of GPL-licensedWordPress items, completely unmodified - that means *not* nulled, cracked or otherwise modified code without any serial numbers, API keys or support.

How can you help? If you like our service, please spread the word. If you can afford to financially support us, please make a donation. All donations will be used for (recurring) subscriptions of WordPress plugins & themes and to grow the catalog!

Tags
authenticity check code collaboration commercial copyleft Copyright developers distribution Download Extensions fork Free fsf functions.php GNU Public License GPL Guide HowTo Instructions Legal license malware Modify nulled open source Plugin Plugins Premium redistribution remove Rights secure Security serial Software software development Themes tutorial Update Website WooCommerce wordpress WordPress Plugins WordPress Themes
Welcome to GPLDL!
scr02We love innovation and we believe in free software!

That's why we strive to make the world's best Premium WordPress Themes & Plugins and WooCommerce Extensions & Themes available for everyone!

Find us on:

FacebookTwitterRssPinterestWebsite
Latest Blog Posts
  • What is the Battle Between WordPress’s Matt Mullenweg and WP Engine about?
    October 31, 2024
  • Why GPLDL Cannot Accept Your WordPress Plugin or Theme Submission
    February 20, 2024
  • How to Ensure Your WordPress Plugin or Theme is Authentic and Secure
    January 25, 2024
Latest Updates & Additions
  • GPLDL News: 108 Updates & Additions today – Download 2842 Premium WordPress items!
    May 2, 2025
  • GPLDL News: 176 Updates & Additions today – Download 2840 Premium WordPress items!
    April 27, 2025
  • GPLDL News: 88 Updates & Additions today – Download 2838 Premium WordPress items!
    April 21, 2025
About GPLDL
  • About GPLDL
  • Need Help?
  • F.A.Q.
  • Terms of Service
  • Privacy Policy
  • Contact
GPLDL - all Rights reserved.
  • About GPLDL
  • Need Help?
  • F.A.Q.
  • Terms of Service
  • Privacy Policy
  • Contact
  • Sign In
GPLDL Widget Menu