[wordpress插件] Add Code To Head将代码添加到头部

wordpress 插件 文章 2020-01-29 17:00 994 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

Intended users: Template Designers, Developer

目标用户:模板设计人员,开发人员

If you wish to add any custom HTML to the bottom of each page’s head, then this plugin is for you.

如果您希望在每个页面标题的底部添加任何自定义HTML,则该插件适合您。

For example, you can add some custom CSS, a link to an external javascript file or something else.

例如,您可以添加一些自定义CSS,指向外部javascript文件的链接或其他内容。

The problem with editing the template directly is if you ever update the template, your changes will be lost.

直接编辑模板的问题是,如果您更新模板,所做的更改将丢失。

This plugin works around this issue.

此插件可解决此问题。

Acknowledgements

致谢

Plugin Icon (CC BY 3.0) by DeniShop

插件图标(CC BY 3.0),由 DeniShop

安装步骤

Via your Blog’s install plugin option

通过您博客的安装插件选项

    • Click the big ‘Install Plugin’ button in the plugin description window
    • 点击插件说明窗口中的“安装插件”大按钮

    Upload

    上传

    If you have a single file (ending in “.zip”), then use this method.

    如果您只有一个文件(以“ .zip”结尾),请使用此方法。

      1. From the plugins, add new, click on the upload button
      2. 从插件中添加新内容,然后点击上传按钮

      3. Navigate to where the .zip file is located and select it
      4. 导航到.zip文件所在的位置,然后选择它

      5. Make sure to activate the plugin once it is installed
      6. 确保插件安装后激活

      Files

      文件

      If you have multiple files in a directory, use this method.

      如果目录中有多个文件,请使用此方法。

        1. Upload the entire directory (not just the files) to the /wp-content/plugins/ directory
        2. 将整个目录(不仅仅是文件)上传到 / wp-content / plugins / 目录

        3. Activate the plugin through the ‘Plugins’ menu in WordPress
        4. 通过WordPress中的“插件”菜单激活插件

下载地址

https://downloads.wordpress.org/plugin/add-code-to-head.zip

https://downloads.wordpress.org/plugin/add-code-to-head.zip

-EOF-

AI助手支持GPT4.0