You can hide the Empire CMS front-end information by editing the template file, using CSS to hide, or setting a custom version number through the htaccess file.
How to hide Empire CMS front-end information
Empire CMS is a powerful content management system, but it By default, some information will be displayed to front-end visitors, such as copyright information and system version number. You may want to hide this information for security or aesthetic reasons.
Steps:
Open the template file of Empire CMS, usually located in /e/template/default
Directory.
Search for the following code and delete it:
<code><div class="footer"><a href="http://www.phome.net" target="_blank" title="Powered by EmpireCMS">Powered by <b>EmpireCMS</b></a></div></code>
Search for the following code and replace it with your custom text:
<code><span id="version"></span></code>
You can use the following code:
<code><span id="version">自定义文本</span></code>
Save the template file.
Other methods:
Use CSS Add the following code to In your stylesheet:
<code>.footer { display: none; }</code>
This will hide the copyright information in the footer.
Add the following code in the htaccess file:
<code>Header set X-Powered-By "自定义文本"</code>
This will be set in the HTTP header Custom version number information.
Note:
The above is the detailed content of How to hide front desk information in Empire CMS. For more information, please follow other related articles on the PHP Chinese website!