Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author twinpictures

    (@twinpictures)

    Can you share a link to your site? There are a couple of reasons that might prevent the initial collapse of the extra content loaded after the “More…” link.
    It depends on how the content is loaded. Is there an option to toggle how the content is loaded? For example: dynamically (via AJAX)?

    Is the issue that the expand/collapse does not work at all, or simply that the new content shows all expand elements as initially expanded?

    Update: We just did a test here: https://spacedonkey.de/3320/collapse-o-matic-and-easy-footnotes-test/

    The Easy Footnotes plugin is not responsible for the “More…” tag. Please be more descriptive on how to recreate the issue and include a link to your page.

    • This reply was modified 6 years, 5 months ago by twinpictures. Reason: Update with link to test
    Thread Starter mdavidhughes

    (@mdavidhughes)

    I have removed the use of expand/collapse, but I want to use it in a post that currently is this page:

    https://qualityofmercy.com/wordpress/attica-coming-together/

    The expand/collapse works well. It’s just that the footnotes for the collapsed content continue to display below the collapsed content, rather than be collapsed themselves.

    It’s as if the footnotes were posted outside of (below) the [/expand] shortcode tag. But the Easy Footnotes shortcode tags, [note]dummy text[/note], are embedded inside the content.

    This text in the visual editor…

    And while both Come Out and Coming Together had brutal roots, Daniel Hamm survived his ordeal whereas Rzewski's narrator did not.[note]For more on Come Out see "Blood and Echoes: The Story of Come Out, Steve Reich’s Civil Rights Era Masterpiece" by Andy Beta on Pitchfork. It can be noted that William Kunstler was involved in the legal team of both the Harlem 6 and Attica prisoners.[/note]

    …renders thus in the public blog post:

    And while both Come Out and Coming Together had brutal roots, Daniel Hamm survived his ordeal whereas Rzewski’s narrator did not.1

    –the “1” being a superscript link to the footnote.

    Somehow the entire content of the blog post needs to be captured by the [expand]dummy[/expand] tags — including the bits between the [note]dummy[/note] tags.

    • This reply was modified 6 years, 5 months ago by mdavidhughes.
    • This reply was modified 6 years, 5 months ago by mdavidhughes.
    Plugin Author twinpictures

    (@twinpictures)

    Ok, we now understand the issue. The actual footnotes are tacked on to the end (or foot) of the page content. These footnotes are what you want to have hidden in a collapse element, however by the very nature of footnotes, they are not part of the main content.

    You might want to reach out to the Easy Footnotes plugin developers and see if they have a filter or a way that custom id or classes can be assigned to the footnote section.

    Thread Starter mdavidhughes

    (@mdavidhughes)

    Thanks. I really need your solution to my long blog posts. I’ll contact Easy Footnotes. You’ve given me an idea that even I might be able to play with the IDs and classes.

    Plugin Author twinpictures

    (@twinpictures)

    In the meantime we have modified the easy footnotes plugin to allow before and after content filters for the footnotes.
    The modified plugin can be downloaded from GitHub at:
    https://github.com/baden03/easy-footnotes

    once installed, add the following to your child-theme’s function.php file:

    add_filter( 'before_footnote', 'pre_footnote', 1);
    function pre_footnote($footnote_content) {
    	$footnote_content .= '[expand title="Show Footnotes" swaptitle="Hide Footnotes"]';
    	return $footnote_content;
    }
    
    add_filter( 'after_footnote', 'post_footnote', 1 );
    function post_footnote($footnote_content) {
    	$footnote_content .= '[/expand]';
    	return $footnote_content;
    }
    

    A demo can be seen here: https://spacedonkey.de/3320/collapse-o-matic-and-easy-footnotes-test/

    Plugin Author twinpictures

    (@twinpictures)

    issue marked as closed

    Thread Starter mdavidhughes

    (@mdavidhughes)

    I was unable to implement your workaround a month ago, but did take the issue up with Easy Footnotes, which has improved the issue status. In my test post, “Show Footnotes” is properly hidden on my Blog Posts page (scroll down to the last post called “footnote formatting”):

    https://qualityofmercy.com/wordpress/blog/page/2/

    But “Show Footnotes” appears below my “Read more…” toggle in the stand-alone post itself:

    https://qualityofmercy.com/wordpress/2008/10/19/footnote-formatting/

    See our Easy Footnotes conversation for reference.

    Plugin Author twinpictures

    (@twinpictures)

    You are posting a new issue an issue that has been resolved.
    Since the this thread has a solution, and has been marked as closed a month ago, please open a new thread that deals specifically with your new issue.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Easy Footnotes not collapsed/hidden’ is closed to new replies.