remove yellow pencil update nag

Blogging Tutorials

How to Hide the Yellow Pencil Activation Nag from WordPress Admin

Written by Blogging Dude · 56 sec read >

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

Also Read
Top 12 Blogging Platforms to Start Money Making Blog in 2021

2 Replies to “How to Hide the Yellow Pencil Activation Nag from WordPress Admin”

  1. I tried this code, I copied to the bottom of the functions.php file but for me not work, my message say “Would you like to receive automatic updates? Please activate your copy of YellowPencil.”
    (value: “updated notice yellowpencil-notice”).

Leave a Reply

Your email address will not be published. Required fields are marked *