Change the title in TOC

Posted by Brunhilda on 22 Sep 2009 13:08, last edited by GoVegan on 09 May 2010 05:34

: toc

rating: +3

This brainstorming belongs to Phil Chett, and was implemented in my site, Istorijska biblioteka. I wanted to change the TOC to Serbian, and Phil helped me to do it.

Now, anyone who wants to change Table of Contents to anything else (another language or different word in English, now can do that thanks to Phil.

1. create a page called toc
2. Insert in this page the following code:

[[div class="tocdiv"]]
**HERE WRITE WHATEVER YOU WANT AS TITLE OF TOC**
[[toc]]
[[/div]]

3. Then go to Site Manager » Appearance » Custom themes
4. Create new Theme
5. Write the name of a new theme
6. From the drop menu, select the theme you have chosen for your site.
7. In edit window, insert the following code:

#toc .title {
font-weight: bold;
margin: 0.2em 0 ;
padding: 0 2em;
text-align: center;
display: none;
}

8. Save the Theme.
9. Go to Appearance » Theme
10. Assign the newly created theme to your site.
11. The new TOC is introduced in pages by:

[[include toc]]

That should work.

Author

Phil Chett Phil Chett . Please visit his/her userPage.

An Update: Now it is possible to change the title in TOC by:

[[toc title="Whatever"]]

Related articles

Comments

Mexanik Mexanik 06 Jun 2016 03:05

Why adding font-weight and other margins if they'll be invisible anyway? Just "display: none" is enough.

by Mexanik Mexanik , 06 Jun 2016 03:05
toc
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.

AltStyle によって変換されたページ (->オリジナル) /