Home >CMS Tutorial >WordPress >How to add filing information in wordpress

How to add filing information in wordpress

尚
Original
2019-07-12 15:36:1122752browse

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);
...........

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; );?>

You can add some styles appropriately , such as:



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



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!

Statement:
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