该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Insert Code by Angie Makes

描述

This plugin makes it easy for you to add custom scripts to the head and footer sections of your site. A theme can also add theme support to enable the insert of custom code (HTML, Javascript, and CSS) at the top of a page, above header, below header, above content, and below content.

Live Demo & Documentation

屏幕截图

  • Insert Code

安装

  1. Uzip the wpc-insert-code.zip folder.
  2. Upload the wpc-insert-code folder to your /wp-content/plugins directory.
  3. In your WordPress dashboard, head over to the Plugins section.
  4. Activate WP Canvas – Insert Codes.

常见问题

Installation Instructions
  1. Uzip the wpc-insert-code.zip folder.
  2. Upload the wpc-insert-code folder to your /wp-content/plugins directory.
  3. In your WordPress dashboard, head over to the Plugins section.
  4. Activate WP Canvas – Insert Codes.
How do I add theme support

// Enable support for custom code to be inserted on various sections of theme
add_theme_support( ‘wpc-insert-code’, array( ‘top-of-page’, ‘above-header’, ‘below-header’, ‘above-content’, ‘below-content’ ) );

<!-- add lines of code in the appropriate section of your theme -->
<?php do_action( 'wpc_insert_code_top_of_page' ); ?>
<?php do_action( 'wpc_insert_code_above_header' ); ?>
<?php do_action( 'wpc_insert_code_below_header' ); ?>
<?php do_action( 'wpc_insert_code_above_content' ); ?>
<?php do_action( 'wpc_insert_code_below_content' ); ?>

评价

此插件暂无评价。

贡献者及开发者

“Insert Code by Angie Makes” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

Version 1.2

  • rebranded

Version 1.1

  • removed static declaration on none static members

Version 1.0

  • Plugin released. Everything is new!