Table of Content
Respondida-
Hi Enrique Paul,
Glad to hear that you read my posts :)
You can read my Tip for TOC also:
And if any confusion feel free to ask.
Thanks
-
Thankyou, that worked for me.
I have one more query, how can I add external url to my table of content links? -
I have one more query, how can I add external url to my table of content links?
Solution:
$(document).ready(function() {
$("#toc").toc({content:".article-body", headings:"h1,h2,h3,h4,h5,h6"});
// External URL - Start
$("#toc li:first-child a").attr("href", "http://www.google.com/");
$("#toc li:nth-child(2) a").attr("href", "amazon.com");
$("#toc li:nth-child(3) a").attr("href", "yahoo.com/");
// End
});But, why do you wanna external URL in TOC items? :)
-
Do you wanna link accordion panel-body to TOC items, am I right? :)
-
Thanks and yes you guess that right.😊
-
I am adding my HTML code and this is not working. Why?
-
For article's source code:-
Check the box 'Display unsafe content' in the Guide setting > Security section.
By the way, HTML always works but you can try this option if uncheck the box in your Guide settings.
If issue is not which I mentioned then share complete query.
Por favor, entrar para comentar.
7 Comentários