开发者 | sambrishes |
---|---|
更新时间 | 2014年11月27日 22:15 |
捐献地址: | 去捐款 |
PHP版本: | 3.8 及以上 |
WordPress版本: | 4.0.1 |
版权: | MIT License |
版权网址: | 版权信息 |
[dexs_toc]
and also through an own sidebar widget.
You can configure a default design for all TOC containers through the administration page,
'Dexs Navigation Tree' under 'Settings'. But it's also possible to design each TOC container for
himself, use therefore the 'Generate Shortcode' button on the admin page or check the faq section!
How it works?
The Plugin generates automatically a "Table of Content" list using the content heading tags h1 - h6.
But you can also create your own list with the class names anchor-1 to anchor-6, insert the class
name inside a span, p, div, i, b, strong or section element. (See FAQ)
New in version 1.2.2
dexs-navigation-tree
folder to your /wp-content/plugins/
directoryTable of Contents
Widget to your Sidebar or[dexs_toc]
shortcode to your posts and pagesWrite the following shortcode on the top of your posts and pages. And don't forget: Add the shortcode ALSO after each code, if you want to display the TOC Container on each page!
[dexs_toc]
Or move the "Table of Contents" widget to your main sidebar.
Use the shortcode generator on the administration page ('Settings' -> 'Dexs Navigation Tree') or use the following attributes inside the [dexs_toc] shortcode:
New in 1.2.0
type="h"
post_title=true
post_sub=false
colors="default,default,default"
css=""
title="Table of Contents"
align="right"
anchor=true
tag="ul"
design="level_num"
border="1px solid #d0d0d0"
background="transparent"
You have 2 options since version 1.2.0. Option 1: Heading Elements Use the content heading elements <h1> - <h6> (You don't have to start with <h1>). Example `[dexs_toc type="h"] Title 1 Title 2 ` Option 2: Class Names Use the class names "anchor-1" up to "anchor-6" inside a <span>, <p>, <div>, <i>, <b>, <strong> or <section> element. Now you can display a different title between the post content and the TOC Container. (If you need this). PS.: The element with the "anchor-*" class name will removed, so don't insert more then the TOC title! Example `[dexs_toc type="c"] My TOC Title 1 My Post Title 1 My TOC Title 2 My Post Title 2 `
The widget will show automatically on post and pages (is_page() && is_post()). If you need special settings, use The Widget Logic WordPress Plugin to define exactly where the widget should display and where not.