Import HTML content to WP, with the mfn markup structure already in place
-
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…
- The topic ‘Import HTML content to WP, with the mfn markup structure already in place’ is closed to new replies.