- This topic is empty.
-
AuthorPosts
-
December 24, 2015 at 4:43 pm #16518Penny DreadfulParticipant
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 #16519Claude TuringParticipantIf you like to dive into your functions.php you can check this out:
Links to Github:
Remove Yoast SEO nag after updateor maybe this will help with the Yoast premium version:
Tada
December 24, 2015 at 6:02 pm #16521Penny DreadfulParticipantThank you so much, Claude, really appreciate your help! :-)
December 24, 2015 at 6:05 pm #16522Claude TuringParticipantDid 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 #16523Penny DreadfulParticipantI 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 #16524Claude TuringParticipantHi,
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 #16525Penny DreadfulParticipantJust 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 #16527Claude TuringParticipantHi,
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 #16528Claude TuringParticipantHi,
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 8 years, 8 months ago by Claude Turing. Reason: underscore added and completed the function name. oopses
- This reply was modified 8 years, 8 months ago by Claude Turing. Reason: proff should be proof
December 27, 2015 at 10:38 am #16531Claude TuringParticipantSince 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 8 years, 8 months ago by Claude Turing. Reason: spelling and clarification
- This reply was modified 8 years, 8 months ago by Claude Turing. Reason: same
- This reply was modified 8 years, 8 months ago by Claude Turing.
December 27, 2015 at 11:24 am #16535Penny DreadfulParticipantWorks like a charm!
Thank you Claude, this is the best holiday gift ever, you are my hero! :-)December 27, 2015 at 11:25 am #16536Claude TuringParticipantHi Penny Dreadful,
No problem, enjoy a nag free admin dashboard!
February 26, 2016 at 5:16 am #16800zaifhul imamParticipanthey, does it still work even without the license key? Please answer
February 27, 2016 at 12:30 pm #168067h3hKeymaster@Claude: Thanks for adding these detail instructions! Great work and very much appreciated!
April 21, 2016 at 1:27 pm #17040Kate HParticipantExcellent tutorial, I used pluginception and it worked like a charm!
Many thanks Claude
May 20, 2016 at 11:25 pm #17132Nathan OldfieldParticipantThanks for your efforts Claude!
I’m assuming that will remove all errors not just Yoast ones?
Nathan
June 8, 2016 at 8:02 am #17269Droleba SatgalabParticipantif 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-managerOpen 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, 3 months ago by Droleba Satgalab.
June 27, 2016 at 6:44 pm #17394Penny DreadfulParticipantHi 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 #17558Piki KikiParticipantHello,
I created acc just to say thank you. Works like a charm!!!
September 2, 2016 at 6:06 pm #17790WakikiParticipantClaude’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 #18246Joe PaytonParticipantI 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 #18371frzParticipantThanks 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.
February 9, 2017 at 9:41 am #18496DavidParticipantFor a quick light weight fix, use WP Nag Hide – https://wordpress.org/plugins/wp-nag-hide/
March 2, 2017 at 7:38 am #18667TomParticipantHello,
Does anybody know how to remove the red link?- This reply was modified 7 years, 6 months ago by Tom.
March 5, 2017 at 7:07 pm #18674Nitko KranjcarParticipantHi, the nagg is back again even with the fix. Could someone please adjust the fixing code?
Thank youMarch 14, 2017 at 8:38 am #18701Krishna ChowdaryParticipantHi,Nag is back again..Someone adjust the fixng code
Thanks in AdvanceMarch 24, 2017 at 3:18 pm #18717CreativeBlipParticipantIn the functions.php code, replace div.error with div.yoast-notice-error
April 30, 2017 at 6:20 am #18867Rick RottmanParticipantOpen wordpress-seo-premium/vendor/yoast/license-manager/class-license-manager.php and remove lines 110 – 121.
May 1, 2017 at 1:33 am #18882Uldis ZParticipantIf 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 #18918Mohammad aghajaniParticipantRick Rottman
thanks -
AuthorPosts
- You must be logged in to reply to this topic.