How can I remove bitnami banner on WordPress site?

不打扰是莪最后的温柔 提交于 2020-07-16 15:05:01

问题


I installed WordPress using Bitnami and now I have the Bitnami banner in the lower right corner of the page on that WordPress site. How can I remove it?


回答1:


Bitnami developer here.

The Bitnami info page provides information about the installed application resources as well as useful links to documentation. It is accessible by clicking in the Bitnami banner in the right bottom corner.

In case you want to remove the banner, you will just need to SSH into your machine and then execute the following command:

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

Please note that /opt/bitnami is the default installation directory of the Bitnami stack.

Finally, you need to restart Apache.

sudo  /opt/bitnami/ctlscript.sh restart apache

You will find more information about the Bitnami banner using the following link:

https://docs.bitnami.com/general/components/bninfo/

I hope it helps.

EDIT:
It might happen that you moved the bnconfig tool when configuring the domain for your WordPress site. Do you have any bnconfig.disabled file in the /opt/bitnami/apps/wordpress directory? If so, please use that file when running the command above.

Regarding the banner, you can remove it manually by running the following command

sudo touch /opt/bitnami/apps/bitnami/banner/disable-banner

Apache looks for that file when adding the banner and it disables the banner if the file exists.




回答2:


The easiest way to do this without getting into the backend is to edit the custom CSS.

In the admin panel, go to Appearance -> Customize -> General General- Main

In the custom CSS section paste

#bitnami-banner {display:none;}



回答3:


Running the bnconfig script threw an error, it didn't work, what did work at last I found is this: https://community.bitnami.com/t/cannot-remoe-the-bitnami-info-banner-for-a-wordpress-multisite/29988

So, comment this line (add # at the beginning) or delete it:
Include "/opt/bitnami/apps/wordpress/conf/banner.conf"

in file
/opt/bitnami/apps/wordpress/conf/httpd-app.conf




回答4:


In WordPress: Navigate to Appearance then customise Then add the additional CSS

#bitnami-banner { 
  display: none !important; 
}



回答5:


All answers here either did not work or were only hiding the banner. Hiding banner would lead to slower load time than if the banner is disabled.

To disable the banner open /opt/bitnami/apache2/conf/httpd.conf and comment the line Include /opt/bitnami/apps/bitnami/banner/conf/banner.conf adding a # before it. (I had it on line 557)

Then restart apache executing: sudo /opt/bitnami/ctlscript.sh restart apache




回答6:


Go to app name directory and use ./bnconfig

cd /opt/bitnami/apps/app_name

sudo ./bnconfig --disable_banner 1

sudo ./ctlscript.sh restart apache



回答7:


Go into wordpress Appearance > Customize > Custom CSS. Add the following:

#bitnami-banner { display: none !important; }



回答8:


Much easier way… enter this CSS into the theme settings

.bitnami-corner-image { display: none !important; }

Done.




回答9:


The easiest way to remove that weird logo of bitnami from your precious website is below:

That logo of bitnami is hosted on your own website/server so you need to remove that image from your website. The link of that logo would be in below manner just replace your website domain with "yourwebsite.com" and paste it to search bar of your browser and you will see that logo there.

http://yourwebsite.com/bitnami/images/xcorner-logo.png.pagespeed.ic.6TukXqDtLV.png

Now go to your wordpress site and go to media -> Gallery then find that logo image name there or search via search option and then delete it permanently from your wordpress site.




回答10:


in wordpress:

navigate to Appearance then customise Then add the additional CSS

#bitnami-banner { 
    display: none; 
}



回答11:


Please follow below mentioned steps to remove Bitnami info page banner for any hosting

login with wp-admin -> Dashboard -> Appearance -> Customize -> Additional CSS ->

#bitnami-banner {
    display:none;
}

If above code will not work simply add !important

#bitnami-banner {
    display:none !important;
}



回答12:


Many people gave answers, I'd recommend you follow the official guide. Follow the official documenation here: https://docs.bitnami.com/google/how-to/bitnami-remove-banner/

However, bitnami page still stays and this could be a security threat if there are vulnerability scanners looking for bitnami setups. Therefore I recommend you also move the page with the command:

sudo rm -rf /opt/bitnami/apps/bitnami/banner/htdocs



回答13:


There are 2 ways you can remove the bitnami banner. First, commenting the banner line in .htaccess file and Second, using Customized CSS for the banner to display: none

https://www.discovertopten.com/remove-bitnami-banner-from-your-website/



来源:https://stackoverflow.com/questions/34744552/how-can-i-remove-bitnami-banner-on-wordpress-site

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!