plugin-icon

Shortcoder — 為想的到的全部項目建立短代碼

輕鬆為 HTML、JavaScript 及 CSS 程式碼片段新增自訂短代碼,並在文章、頁面及小工具中使用這些短代碼。
評分
4.9
最近更新:
July 24, 2024
版本
6.4
活躍安裝總數
100K
Shortcoder — 為想的到的全部項目建立短代碼

Shortcoder 讓網站管理員能為 HTML、JavaScript、CSS 及其他程式碼片段建立自訂短代碼。短代碼可用於文章及頁面中,並在插入位置執行對應的程式碼片段。

✍ 輕鬆建立短代碼

  1. Give a name for the shortcode
  2. Paste the HTML/JavaScript/CSS as shortcode content
  3. Save !
  4. Now insert the shortcode [sc name="my_shortcode"] in your post/page.
  5. Voila ! You got the HTML/Javascript/CSS in your post.

✨ 主要功能

  • Create custom shortcodes easily and use them in any place where shortcode is supported.
  • Have any HTML, Javascript, CSS as Shortcode content.
  • Insert: Custom parameters in shortcode
  • Insert: WordPress parameters in shortcode
  • Multiple editors: Code, Visual and text modes.
  • Globally disable the shortcode when not needed.
  • Disable shortcode on desktop, mobile devices.
  • A button in post editor to pick the shortcodes to insert.
  • Execute blocks HTML in shortcode content.
  • Insert shortcodes in Gutenberg/block editor.

🎲 使用方式範例

  1. Create a shortcode named “adsenseAd” in the Shortcoder admin page.
  2. Paste the adsense code in the box given and save it.
  3. Use [sc name="adsenseAd"] in your posts and pages.
  4. Tada !!! the ad code is replaced and it appears in the post.
  5. Now you can edit the ad code at one place and the code is updated in all the locations where the shortcode is used.

Similarly shortcodes can be created for frequently used snippets.

You can also add custom parameters (like %%id%%) inside the snippets, and change it’s value like [sc name="youtube" id="GrlRADfvjII"] when using them.

🧱 在區塊編輯器中使用

Though shortcodes can be used in any place manually, Shortcoder provides below options to select and insert the shortcodes created easily when working with the block editor.

  • Shortcoder block
  • Toolbar button to select and insert shortcodes inline (under “more”)

💎 升級至 Pro 版

Shortcoder also provides a PRO version which has additional features to further enhance the experience. Below features are offered in the PRO version.

  • Custom editor – Edit Shortcode content using block editor or page builder plugins like Elementor and WPBakery.
  • Revisions – Revisions support for Shortcode content.
  • Locate shortcode – Search posts and pages where a shortcode is used.
  • Extra code – Include extra code to the footer when a shortcode is used in a page.

Get started with Shortcoder – PRO

相關連結

免費使用Business方案
活躍安裝總數
100K
目前已測試版本
6.6.1
此外掛程式已可供下載,並可用於你的 WordPress 自助託管安裝。