跳到内容

Story Highlights

v1.4

dbirlew · 2013年6月24日 上架

Adds a bullet list to the start of the post content.

正在使用
10+
评分
暂无
累计下载
2,081
最近更新
2014年10月13日
需要 WordPress 3.0.1+已测试到 4.0.38

贡献者

截图

In-post display, right-aligned, with default styles checkbox checked.
In-post display, right-aligned, with default styles checkbox checked.
Widget display in the sidebar.
Widget display in the sidebar.

Like the “Story Highlights” lists on articles at CNN.com and other sites, this adds a bullet list to each post’s content via an edit post page panel. The plugin sets up the code only, styling can be handled by adding the classes provided under the Other Notes to style.css in your theme.

Use

Add a new post or edit an existing post. A new panel titled “Story Highlights” appears in the right column of the edit post page. If these fields are all blank, the plugin does nothing. To add a “Story Highlights” bullet list to your post, you MUST add a list title and the first bullet point. Otherwise an empty list appears. You may add up to five bullet points, summarizing your post. To delete a bullet point, clear the field. UPDATE your post to save your bullet points.

Alignment

Below the list fields is the option “choose alignment”. By default it is set to “none” which inserts the element as a block above the post. Leave this option if you wish to manually apply your own floats to the element. Otherwise choose “left” or “right” to float the element to the right or the left of the first paragraph of your post. Note that floating the list left or right may break your layout if you insert an image at the start of your post.

Styling

This plugin inserts a (mostly) un-styled element above the first paragraph of your post content. The following unique classes and ids can be added to your stylesheet and used to position and style the element, allowing the freedom to style each part individually:

div.shsp
h1.shsp_title
ul#shsp_ul
li.shsp_li1
li.shsp_li2
li.shsp_li3
li.shsp_li4
li.shsp_li5

As of version 1.4 checking the box labelled “Use default plugin styles?” will add styles to your source code. This can be enabled/disabled on a per-post basis. However, the recommended method of use is to add the classes above to the style.css file of your theme and style the Story Highlights box your own way, to match your look.

Widget

This plugin adds the Story Highlights widget to the Appearance > Widgets page. Add this widget to the sidebar that will be displayed on single post pages. This widget has no settings. If the widget is active then the post element is not inserted, and the list appears in the sidebar. Remove the widget from the sidebar if you wish to display the element within the post body.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums