divibanks / footnotes-made-easy

A WordPress plugin that allows post authors to easily add and manage footnotes in posts and pages.
https://wordpress.org/plugins/footnotes-made-easy/
GNU General Public License v2.0
2 stars 3 forks source link

WPML compatibility #13

Open mherna4 opened 4 months ago

mherna4 commented 4 months ago

I found that at least the ‘Footnotes Header’ field was not translated correctly with WPML. I contacted WPML support and they gave me the following solution:

Open the ‘footnotes-made-easy.php’ file found in wp-content/plugins/footnotes-made-easy. Search for line 290. Replace:

$footnotes_markup = $footnotes_markup . $this->current_options[ ‘pre_footnotes’ ]; by $footnotes_markup = $footnotes_markup . get_option( ‘swas_footnote_options’ )[ ‘pre_footnotes’ ];

Always in the same file but on line 314 you will find a similar code. change it to this one.

$footnotes_markup = $footnotes_markup . ” . get_option( ‘swas_footnote_options’ )[ ‘post_footnotes’ ];

It worked for me!