• Resolved sabinaparla

    (@sabinaparla)


    I am using a footnotes within tab sheets. I was wondering if its possible to only show the footnotes for that specific tab sheet and not all of them on that page .

Viewing 1 replies (of 1 total)
  • Plugin Contributor pewgeuges

    (@pewgeuges)

    @sabinaparla

    Thanks for the support topic. If the tab sheets have widget status, activating the widget_text hook in the plugin’s settings under ‘Scope and priority’ should display a reference container at the bottom of each one of them that has footnotes within it. If they don’t, adding [?[/footnotesection]]—or any string that this is configured to—at the bottom of a specific tab sheet should have the effect of displaying all footnotes until this point in an extra reference container at this point. Limiting its content to the footnotes for that tab sheet requires basically placing the code at the bottom of each tab sheet, plus another one before the first tab. The rest of the footnotes on that page, those below the last tab sheet, would display automatically at the end of the page.

    The configurable [?[/footnotesection]] code is not a registered shortcode and isn’t “de-auto-p-ed”. Unless the wpautop filter is removed, it will get paragraph markup in postprocessing, especially if it’s inserted in a shortcode block and the Block Editor doesn’t save it as a paragraph already. On websites without posts relying on wpautop(), that issue can be addressed by removing the filter entirely. To do that, please add this code in your child theme’s functions.php:

    
    remove_filter( 'the_content', 'wpautop' );
    remove_filter( 'the_excerpt', 'wpautop' );
    

    See https://developer.www.ads-software.com/reference/functions/wpautop/#more-information
    and https://www.iceable.com/blog/stop-wpautop-messing-shortcodes/ for additional information.

    Else, as browsers are completing lone paragraph start or end tags, the result is an empty paragraph before, and an empty paragraph after the reference container. Often the only effect is increased margin, which can be mitigated to some extent by setting a negative margin before and after the reference container, respectively. That however will affect all Footnotes reference containers sitewide.

    • This reply was modified 3 years, 8 months ago by pewgeuges.
    • This reply was modified 3 years, 8 months ago by pewgeuges.
    • This reply was modified 3 years, 8 months ago by pewgeuges.
Viewing 1 replies (of 1 total)
  • The topic ‘tab sheets’ is closed to new replies.