isotropic-2022
Share
Blog
Search
Menu

How To Remove The Bitnami Banner From Your Lightsail WordPress Website

By James LePage
 on May 20, 2020
Last modified on January 7th, 2022

How To Remove The Bitnami Banner From Your Lightsail WordPress Website

By James LePage
 on May 20, 2020
Last modified on January 7th, 2022

In this blog post, we’re going to run through some ways that you can remove the Bitnami banner from your WordPress Installation on Amazon Lightsail. When you install a new instance of WordPress on Amazon Lightsail, this is done through Bitnami. 

When you load your new website you're going to notice a Bitnami Banner in the lower right-hand corner of your WordPress installation.  If you hover over the Bitnami Banner, a close button will appear, and when you click it the Bitnami Banner will disappear. However, upon reloading your page the banner will display again. This is not acceptable for production websites… We’re going to have to disable this.

We don't want this.

There are two main ways to permanently disable the Bitnami Banner on your WordPress Instance Amazon Lightsail. Let's run through both of them, and discuss the pros and cons of each.

Disable The Bitnami Banner Via SSH

Of the two methods this is more complicated, but more effective at permanently disabling the banner. The first thing you need to do is log into your Amazon Lightsail dashboard, and access SSH. You can do this by clicking the big SSH button in the Lightsail dashboard for your instance.

Run the following command, replacing INSTALLNAME with the name of your WordPress installation.

sudo /opt/bitnami/apps/INSTALLNAME/bnconfig --disable_banner 1

This command will add the Disable Banner variable to your Bnconfig file. This variable does as its name suggests, which disables the banner in your Amazon Lightsail WordPress website. Then, you'll need to restart your server. You can do that in the Lightsail SSH interface by simply clicking on the menu icon for your website (next to the terminal/ssh button), in the instances tab, and selecting “Reboot”.

Click Reboot for the instance.

Go to your WordPress website, refresh the page, and the Bitnami Banner should be disabled permanently. Of the  two solutions, this is more difficult but more permanent.

Disable The Bitnami Banner With CSS

Instead of logging into the Amazon lightsail dashboard, connecting via SSH, and running that command, you can also do it through your WordPress installation.

You do this by adding custom CSS to your WordPress installation, which hides the Bitnami banner. 

 From your WordPress backend, navigate to appearances → customize.  in the customize screen, scroll all the way down to “Custom CSS”. Add the following code snippet:

#bitnami-banner {display:none;}

Click publish, and the changes will be pushed to the website. This method of disabling the banner is much more simple and quicker, but if the CSS gets removed, the banner will show up again.

These are two simple and straightforward messages that you can use the disable the Bitnami Banner in your Amazon Lightsail WordPress website (though don't we wish it would be disabled by default...).  We prefer the first method as it is more permanent, but it's also a little bit more difficult. The CSS route will do the same thing, but be a bit easier and quicker to implement.

Subscribe & Share
If you liked this content, subscribe for our monthly roundup of WordPress news, website inspiration, exclusive deals and interesting articles.
Unsubscribe at any time. We do not spam and will never sell or share your email.
Subscribe
Notify of
guest
3 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Douglas
Douglas
3 years ago

Thank you for this code,works like magic

Nickie
3 years ago

New config file the ssh command no longer recognised. Css doesn't remove from wp-admin login and the amp version of my pages.

John Bloomer
John Bloomer
3 years ago

Code wouldn't work for me unfortunately. However when you SSH in there is a tools command listed on the SSH screen for common tasks. Once you run it the very first option is to remove the banner. Nice and quick.

Your CSS code did work a treat however, as you pointed out, it's potentially only a temporary fix.

Last edited 3 years ago by John Bloomer
Article By
James LePage
Contributors/Editors
notloggedin
James LePage is the founder of Isotropic, a WordPress education company and digital agency. He is also the founder of CodeWP.ai, a venture backed startup bringing AI to WordPress creators.
We're looking for new authors. Explore Isotropic Jobs.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram