Open robertnicjoo opened 5 years ago
Hi, I'm just trying this and I have issue with detecting headings in my panel. It gets headings provided by my editors in tocify list as well.
my question is
How to avoid getting my editor headings in my sections list?
<script> $(function() { var toc = $("#tocify").tocify({context: ".tocify-content", showEffect: "fadeIn",extendPage:false,selectors: "h5, h6" }); }); </script>
Thanks.
Have you tried adding classes to the headings that are not from editors and then also making the selectors in tocify more specific? Something like selectors: "h5.section, h6.section"?
selectors: "h5.section, h6.section"
Hi, I'm just trying this and I have issue with detecting headings in my panel. It gets headings provided by my editors in tocify list as well.
my question is
How to avoid getting my editor headings in my sections list?
Code
Thanks.