Home > CMS Tutorial > WordPress > body text

How to add filing information in wordpress

Release: 2019-07-25 10:11:27
Original
22708 people have browsed it

How to add filing information in wordpress

When filing, the filing number needs to be displayed, but the WordPress default template itself does not carry this information. In order to handle the filing more quickly, the solution is as follows:

According to wp-config .php tips

..........
/**
 * zh_CN本地化设置:启用ICP备案号显示
 *
 * 可在设置→常规中修改。
 * 如需禁用,请移除或注释掉本行。
 */
define('WP_ZH_CN_ICP_NUM', true);
...........
Copy after login

Select menu->Settings->General-Edit registration number information

How to add filing information in wordpress

## in the footer.php of the theme you are using Add a line of code to display the ICP registration number added in the WordPress background.

Select menu: Appearance-Edit-Find footer.php and add the following information

<?php echo get_option( &#39;zh_cn_l10n_icp_num&#39; );?>
Copy after login

You can add some styles appropriately , such as:

Display effect:

How to add filing information in wordpress

For more wordpress related technical articles, please visit the

wordpress tutorial column to learn!

The above is the detailed content of How to add filing information in wordpress. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template