如何删除 WordPress 网站上的 bitnami 横幅?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34744552/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can I remove bitnami banner on WordPress site?
提问by Vladimir Despotovic
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?
我使用 Bitnami 安装了 WordPress,现在我在该 WordPress 网站页面的右下角有 Bitnami 横幅。我怎样才能删除它?
采纳答案by Vladimir Despotovic
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
运行 bnconfig 脚本抛出一个错误,它没有用,我发现最后起作用的是: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"
因此,注释此行(在开头添加 #)或将其删除:
包括“/opt/bitnami/apps/wordpress/conf/banner.conf”
in file
/opt/bitnami/apps/wordpress/conf/httpd-app.conf
在文件
/opt/bitnami/apps/wordpress/conf/httpd-app.conf
回答by Jota Martos
Bitnami developer here.
Bitnami 开发人员在这里。
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.
Bitnami 信息页面提供有关已安装应用程序资源的信息以及有用的文档链接。单击右下角的 Bitnami 横幅可以访问它。
In case you want to remove the banner, you will just need to SSH into your machine and then execute the following command:
如果您想删除横幅,您只需要通过 SSH 连接到您的机器,然后执行以下命令:
sudo /opt/bitnami/apps/wordpress/bnconfig --disable_banner 1
Please note that /opt/bitnami is the default installation directory of the Bitnami stack.
请注意 /opt/bitnami 是 Bitnami 堆栈的默认安装目录。
Finally, you need to restart Apache.
最后,您需要重新启动 Apache。
sudo /opt/bitnami/ctlscript.sh restart apache
You will find more information about the Bitnami banner using the following link:
您可以通过以下链接找到有关 Bitnami 横幅的更多信息:
https://docs.bitnami.com/general/components/bninfo/
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.
编辑:
您可能在为 WordPress 站点配置域时移动了 bnconfig 工具。/opt/bitnami/apps/wordpress
目录中有 bnconfig.disabled 文件吗?如果是这样,请在运行上述命令时使用该文件。
Regarding the banner, you can remove it manually by running the following command
关于横幅,您可以通过运行以下命令手动删除它
sudo touch /opt/bitnami/apps/bitnami/banner/disable-banner
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.
Apache 在添加横幅时查找该文件,如果文件存在,它会禁用横幅。
回答by jamesjansson
The easiest way to do this without getting into the backend is to edit the custom CSS.
在不进入后端的情况下执行此操作的最简单方法是编辑自定义 CSS。
In the admin panel, go to Appearance -> Customize -> General General- Main
在管理面板中,转到外观 -> 自定义 -> 常规 - 主
In the custom CSS section paste
在自定义 CSS 部分粘贴
#bitnami-banner {display:none;}
回答by Rajeev Ranjan
In WordPress: Navigate to Appearance then customise Then add the additional CSS
在 WordPress 中:导航到外观然后自定义然后添加额外的 CSS
#bitnami-banner {
display: none !important;
}
回答by Black
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)
要禁用横幅打开/opt/bitnami/apache2/conf/httpd.conf
并注释行包括/opt/bitnami/apps/bitnami/banner/conf/banner.conf
在它之前添加一个 #。(我在第 557 行)
Then restart apache executing:
sudo /opt/bitnami/ctlscript.sh restart apache
然后重启apache执行:
sudo /opt/bitnami/ctlscript.sh restart apache
回答by Sazzad Hossain
Go into wordpress Appearance > Customize > Custom CSS. Add the following:
进入 wordpress 外观 > 自定义 > 自定义 CSS。添加以下内容:
#bitnami-banner { display: none !important; }
回答by Cybergigz
Go to app name directory and use ./bnconfig
转到应用程序名称目录并使用 ./bnconfig
cd /opt/bitnami/apps/app_name
sudo ./bnconfig --disable_banner 1
sudo ./ctlscript.sh restart apache
回答by Peter J Morgan
Much easier way… enter this CSS into the theme settings
更简单的方法……将这个 CSS 输入到主题设置中
.bitnami-corner-image { display: none !important; }
Done.
完毕。
回答by Nitin Mohan
The easiest way to remove that weird logo of bitnami from your precious website is below:
从您宝贵的网站上删除那个奇怪的 bitnami 标志的最简单方法如下:
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.
bitnami 的标志托管在您自己的网站/服务器上,因此您需要从您的网站中删除该图像。该徽标的链接将采用以下方式,只需将您的网站域替换为“yourwebsite.com”并将其粘贴到浏览器的搜索栏中,您就会在那里看到该徽标。
http://yourwebsite.com/bitnami/images/xcorner-logo.png.pagespeed.ic.6TukXqDtLV.png
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.
现在转到您的 wordpress 站点并转到 media -> Gallery 然后在那里找到该徽标图像名称或通过搜索选项进行搜索,然后将其从您的 wordpress 站点中永久删除。
回答by user8445926
in wordpress:
在 wordpress 中:
navigate to Appearance then customise Then add the additional CSS
导航到外观然后自定义然后添加额外的 CSS
#bitnami-banner {
display: none;
}