• Resolved pablonolla

    (@pablonolla)


    Hi!

    I am about to import several hundred HTML files (articles) into a WP that uses this plugin, and on the HTML there must be some 5.000 footnotes, all already linked back and forth with the corresponding call using regular <a href, id> elements.

    Trying to automate the process I have written a short script that, on the HTML, prior to import, move each footnote text to its place in the article, and wraps it with the code conventions i’ve seen the plugin generates. (All footnotes on all articles using the same “data-mfn-post-scope” value, though…)

    And it –kind of– works !
    BUT ONLY IF, once imported, i manually create at least one modern-footnote somewhere on the page, which in return brings other kind of problems, with fake footnotes messing around the content.

    Does anyone have a suggestion? Is it possible to tell the plugin to “activate” even without creating at least one “correct” modern-footnote?
    Maybe other ways of approaching the issue i am finding?

    Thank you very much for reading.
    And congratulations. It’s very nice how the plugin presents the notes. Very convenient.

    p

    ps: this is how the code on HTML looks.

    <sup class=”modern-footnotes-footnote modern-footnotes-footnote–hover-on-desktop ” data-mfn=”1″ data-mfn-post-scope=”00000000000058eb0000000000000000_63420″><a href=”javascript:void(0)” role=”button” aria-pressed=”false” aria-describedby=”mfn-content-00000000000058eb0000000000000000_63420″>1</a></sup><span id=”mfn-content-00000000000058eb0000000000000000_63420″ role=”tooltip” class=”modern-footnotes-footnote__note” tabindex=”0″ data-mfn=”1″>Footnote here…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter pablonolla

    (@pablonolla)

    As often happens, i was complicating things.

    I’ve found that the best solution to my case is, in my HTML, simply wrap the footnote text with the [mfn] (.*?) [/mfn] tags, place it all where the footnote reference is and let the plugin work once the content is imported to WP.

    Much much simpler than what i was trying to do.

    Plugin Author prismtechstudios

    (@prismtechstudios)

    Glad to hear that you able to find a solution to this, @pablonolla !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Import HTML content to WP, with the mfn markup structure already in place’ is closed to new replies.