Blogging Tutorials

How to Hide the Yellow Pencil Activation Nag from WordPress Admin

"New updates are available for Yellow Pencil, Please activate your copy to receive automatic updates. Activate now!" Remove this nag from WordPress...

· 56 sec read >
remove yellow pencil update nag

Yellow Pencil is one of the most popular WordPress CSS style editor plugins which allows WordPress users to customize your website design in real-time. 

I am a huge fan of this plugin and mostly use it while designing a blogging site whenever I am not using any modern theme builders like Elementor, Beaver or Brizy.

While you can purchase the Yellow Pencil Pro version directly from its official website, but mostly it comes bundled with premium themes when you purchase it with marketplace like Themeforest.

Yellow pencil on Jnews themes
Yellow Pencil bundled with popular JNews Theme

But these themes won’t give you the official license key for Yellow Pencil activation and hence once you install it, you will notice this irritating frustrating update notification on every page of the WordPress admin.

Here is the screenshot:

Yellow pencil update nag

If you are like me and find this update nag highly frustrating, here is a way to remove it. 🙂

Just copy this bit of code and paste it in your WordPress theme’s functions file and hide it forever.

// bloggingdude.com yellow pencil activation nag remover
function admin_css() {
 echo '<style type="text/css">
#update-nag, .update-nag {display: none !important;}
 </style>';
}
add_action('admin_head', 'admin_css');    

Here is the screenshot of how you should add this in functions.php

yellow pencil removal code

I will highly recommend you to use child theme and add this code snippet in the functions.php file of your child theme so that you don’t lose this code once you update the theme.

If this trick was helpful for you, feel free to comment below and express your happiness. 🙂

Cheers,
BloggingDude

Leave a Reply