Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mixed headings #110

Open
robertnicjoo opened this issue Dec 29, 2018 · 1 comment
Open

mixed headings #110

robertnicjoo opened this issue Dec 29, 2018 · 1 comment

Comments

@robertnicjoo
Copy link

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?

54

Code

<script>
    $(function() {
        var toc = $("#tocify").tocify({context: ".tocify-content", showEffect: "fadeIn",extendPage:false,selectors: "h5, h6" });
    });
</script>

Thanks.

@jenlampton
Copy link

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"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants