Menu

Your Services

Service what you deserves

3 Table of Contents (TOC) Widget Examples for Websites

Hey there! Before reading the article which is about 3 Table of Contents (TOC) Widget Examples for Websites, you should read about how to add table of contents in wordpress without plugin. It shares basic information about this article and also adds more value to it. Do let us know how you feel about it in the comment section below. Happy Reading! Really glad that you are here.

The table of contents (TOC) widget is a great tool for all web users. Whether you want to direct a web user to a specific page on your site or help them navigate through your site, a table of contents widget can help. The table of contents widget is also known as a site map, navigation bar, or a quick navigation bar. It is a well-known fact that the easiest way to get lost on a website is to visit a page that is not part of your site map.

A table of contents is a navigational aid which allows users to quickly jump to the desired section of a website or online document. The table of contents is often listed on a sidebar of a web page, and is often used with websites that have a lot of content. A table of contents is usually generated automatically so be sure to check the website’s user guide to learn how to create your own.

1. Automatic table of contents

This is a very simple example of a table of contents that shows the right side of the content.

Author: Chris Coyer

Documentation

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.

How to Smurf a Murph?

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.

How many licks does a giraffe give?

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.

Frank who?

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.

Is fourteen years old enough?

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.

Is the circle an oval yes/no?

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.

Many Mongols show mountains

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.

How would you like to drink lemonade?

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.

I would like a lemonade.

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.

Thank you for accepting the soft drink.

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.

body { background: #eee;padding: 20px;}

article {
max-width: 50em;
background: white;
padding: 2em;
margin: 1em auto;
}

.table-of-contents {
float: right;
width: 40%;
background: #eee;
font-size: 0.8em;
padding: 1em 2em;
margin: 0 0.5em 0.5em;
}
.table-of-contents ul {
padding: 0;
}
.table-of-contents li {
margin: 0 0.25em 0;
}
.table-of-contents a {
text-decoration: none;
}
.table-of-contents a:hover,
.table-of-contents a:active {
text-decoration: underline;
}

h3:target {
animation : highlight 1s ease ;
}

@ keyframes highlight {
from { background: yellow ; }
to { background: white ; }
}

var ToC =

” +

On this page:

” +

“;

var newLine, el, title, link ;

$(article h3).each(function() {

el = $(this);
title = el.text();
link = https://www.foxinfotech.in/2021/05/# + el.attr(id) ;

newLine =

    • +
      +
      Title +
      +

“;

ToC += newLine ;

});

ToC +=

” +

“;

$(.all-questions).prepend(ToC) ;

This source has been very much helpful in doing our research. Read more about yoast table of contents and let us know what you think.

Related Tags:

easy table of contents shortcodetable of contents plusyoast table of contentsluckywp table of contentsfloating table of contents wordpresselementor table of contents free,People also search for,Privacy settings,How Search works,7:28How to Add Table of Contents to WordPress Using ElementorElementor Website Builder for WordPressYouTube – Dec 19, 2019,7:28,How to Add Table of Contents to WordPress Using Elementor,Elementor Website Builder for WordPressYouTube – Dec 19, 2019,Elementor Website Builder for WordPress,YouTube – Dec 19, 2019,8:28BRAND NEW Elementor Table Of Contents WidgetWordPress Tutorials – WPLearningLabYouTube – Dec 23, 2019,8:28,BRAND NEW Elementor Table Of Contents Widget,WordPress Tutorials – WPLearningLabYouTube – Dec 23, 2019,WordPress Tutorials – WPLearningLab,YouTube – Dec 23, 2019,15:30A full Elementor TABLE OF CONTENTS tutorial!Pete McPherson DYEBYouTube – Jan 10, 2020,15:30,A full Elementor TABLE OF CONTENTS tutorial!,Pete McPherson DYEBYouTube – Jan 10, 2020,Pete McPherson DYEB,YouTube – Jan 10, 2020,See more,how to add table of contents in wordpress without plugin,easy table of contents shortcode,table of contents plus,yoast table of contents,luckywp table of contents,floating table of contents wordpress,elementor table of contents free

Leave a Reply

Your email address will not be published. Required fields are marked *