這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Footer Credits

描述

This plugin only works with themes that have added support.

Footer Credits provides a standardized method for making theme credits editable. It registers a new section and fields in the Customizer for modifying the credits and choosing how they appear.

Theme authors, let your users and customers know your theme supports the Footer Credits plugin.

If your theme doesn’t work with Footer Credits, ask the developer to add support. Instructions can be find in the Other Notes section.

Additional Resources

Notes

If you’re a theme author and want to add support, all you need to do is pass the default credits string through a footer_credits filter.

1. Create a template tag with the default credits and filter:

<?php
if ( ! function_exists( 'themename_credits' ) ) :
/**
 * Theme credits text.
 */
function themename_credits() {
    $text = sprintf( __( '%s by Cedaro.', 'themename' ),
        '<a href="https://www.cedaro.com/wordpress/themes/hyalite/">Hyalite</a>'
    );

    echo apply_filters( 'footer_credits', $text );
}
endif;

2. Then call the template tag somewhere in the footer of the theme:

<footer class="site-footer">
    <div class="credits">
        <?php themename_credits(); ?>
    </div>
</footer>

螢幕截圖

  • The Customizer section and fields.

安裝

Install like most other plugins. Check out the codex if you have any questions.

Usage

After installing:

  1. Go to Appearance → Customize in your admin panel
  2. Open the Credits section
  3. Add some text to the Credits text area
  4. Choose whether your custom text appears before, after, or replaces the default credits.

Tip: Insert {{year}} in your text to have the year update automatically.

評價

2017年4月12日
I've read the one star reviews, and they're likely trying to use the plugin on an unsupported theme. Your theme's developer must offer support, but once they do, it does exactly what it says on the tin!
閱讀全部6個評價

貢獻者及開發者

“Footer Credits” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Footer Credits 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.1.0 – December 2, 2016

  • Removed the call to load_plugin_textdomain() in favor of just-in-time text domain loading available since WordPress 4.6.
  • Updated URLs to https where possible.

1.0.0

  • Initial release.