WordPress.org

Ready to get started?Download WordPress

Forums

Table of Contents Plus
[resolved] 'Hide' Link Not Working (6 posts)

  1. Sam
    Member
    Posted 1 year ago #

    The 'hide' link is not working with my theme. I guess there is a conflict somewhere.. maybe with Bootstrap? Any idea how to get this working?

    http://wordpress.org/extend/plugins/table-of-contents-plus/

  2. Mike
    Member
    Plugin Author

    Posted 1 year ago #

    I use Bootstrap in most of my work so it's not that. Got a link?

  3. Sam
    Member
    Posted 1 year ago #

    You can see it here, though you'll have to remove the display none on the link with Firebug or similar (I've hidden it while it is broken).

  4. Mike
    Member
    Plugin Author

    Posted 1 year ago #

    Ahh CKAN, I know it very well - we were trying to push to CKAN for an Australian government agency to house public datasets :)

    Anyway, I chased it down to one line, the line that includes jquery.dotdotdot-1.4.0-packed.js. If you remove it from Firebug, the TOC collapses and expands as expected.

    I looked a bit further and when dotdotdot is included, it changes jquery.html in that it returns not only the contents but also its selector. In my opinion, dotdotdot shouldn't be changing default jquery APIs as it may cause conflicts/compatibility issues - see http://api.jquery.com/html/ So when TOC+ does a comparison, it's trying to compare <a href="...">text</a> with text and obviously not matching.

    I've got no other suggestion except for trying the latest version of dotdotdot and if that doesn't fix it then to replace it with similar server side options (eg word limits, the_excerpt()...)

  5. Sam
    Member
    Posted 1 year ago #

    Ah, good call, updating dotdotdot did indeed fix this. Thanks.
    Quick suggestion, it'd be nice to a class on the container which changes when the list is hidden.

  6. Mike
    Member
    Plugin Author

    Posted 1 year ago #

    Nice suggestion, it'll come.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.