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

Links With Icons Widget

外掛說明

Links With Icons Widget adds a new custom widget which displays links with icons alongside. The links are dynamically added to each widget in the widget admin. This plugin does not use the links manager and does not create any custom post type to store the links. All data is self contained in each widget as widget option data. Images are added and managed using the media library and uploader.

Usage:

  1. In the WordPress admin, go to Appearance…Widgets
  2. Drag the “Links With Icons” widget to a sidebar
  3. Select the number of links the widget will display and save the widget.
  4. The widget will reload with the proper number of fields for the number of links needed.
  5. Fill out the data (URL, Title and Image) and save the widget.
  6. Viola! The widget now appears with your pretty icons.

Important Notes:

  1. The widget doesn’t care about icon / image size. You should probably keep it consistent (and small) so it will be pretty.
  2. If you reduce the number of links in a widget after it has been populated with data, the excess links data will be deleted forever.
  3. The default CSS class for the container UL is links-with-icons-widget
  4. Each link li has a class of link-with-icon
  5. You can style and override the defaults in your own custom css, like:

    .links-with-icons { /* custom styles / }
    .link-with-icon a { /
    custom styles / }
    .link-with-icon img { /
    custom styles */ }
    etc…

Fork away: https://github.com/ethanpil/wp-links-with-icons-widget

This WordPress plugin is brought to you by Los Angeles Web Design

Future Plans:

  1. Display the size of selected image in the widget under the preview
  2. Choose icon position for each link (left (default) or right side)

螢幕擷圖

  • Managing links inside the widget
  • Example Widget Output

安裝方式

Like every other WordPress plugin! 🙂

  1. Upload all the files from links-with-icons-widget.zip into a folder within the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題集

  1. The link doesn’t work! Its showing a 404 error!
    Don’t forget to add http:// to your link.

  2. What if I decrease the number of links in a widget?
    The excess links will be removed and the data deleted.

Installation Instructions

Like every other WordPress plugin! 🙂

  1. Upload all the files from links-with-icons-widget.zip into a folder within the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

使用者評論

2017 年 2 月 7 日
Hello, Its working great. But If I want to delete any single icon from multiple , how I will delete it.
閱讀全部 6 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Links With Icons Widget〉的開發相關工作。

參與者

將〈Links With Icons Widget〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.2

  • Added tag to text for additional CSS styling flexibility (thx: github.com/morfie78)

1.1

  • Added option for No Follow links
  • Image URLs are now returned without protocol to support HTTP or HTTPS

1.0

  • Initial Release