Linux 软件免费装
Banner图

tinyTOC

开发者 ideag
更新时间 2018年2月9日 15:35
捐献地址: 去捐款
PHP版本: 3.0.0 及以上
WordPress版本: 4.4
版权: GPLv2
版权网址: 版权信息

标签

widget shortcode headings table of contents toc

下载

0.3 0.1 0.2 0.4 0.5 0.6.0 0.7.0 0.8.0 0.8.1

详情介绍:

A tiny and simple to help with navigation in long texts by forming an automatic Wikipedia-like table of contents. It works by scanning the text for headings (<h1>-<h6> HTML tags). If more than a certain amount of headings (3 by default) are found - a table of contents with bookmarks is formed and inserted to the post content. Location (above or below) the text can be chosen in settings page. TOC is formed as HTML5 <nav> element with nested ordered list inside. No specific styling is provided, so that it fits organicaly into the text. If you need specific styling, include it to your theme's CSS. You can also use a shortcode - [toc], template tags - get_toc()/the_toc() and a widget - tinyTOC Widget. The plugin is translation ready and has Lithuanian translation. Also try out my other plugins: An enormous amount of coffee was consumed while developing these plugins, so if you like what you get, please consider treating me to a cup. Or two. Or ten. Cover image credit: Jeremy Keith

安装:

  1. Install via WP Admin > Plugins > Add New or download a .zip file and upload via FTP to /wp-content/plugins/ directory
  2. 通过WordPress的的“Plugins”菜单激活插件
  3. (optional) Modify options via WP Admin > Settings > tinyTOC, if needed. Plugin automatically embeds TOC top of post content, but you can use a widget, a shortcode ([toc]), a couple of template tags (the_toc()/get_toc()) for other integration options.

屏幕截图:

  • A TOC widget (left) and a TOC above the page content (center) in action in TwentyFourteen theme.
  • Settings screen.

升级注意事项:

0.6 Renamed main plugin file to fit WordPress tradition better. Plugin will be deactivated after upgrade and you'll need to reactivate it.

常见问题:

I don't see tinyTOC Widget in the available widget list.

You need to activate the widget via plugin Settings page (WP Admin > Settings > tinyTOC)

更新日志:

0.8.0 0.7 0.6 0.5 0.4 0.3 0.2 0.1