Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPML compatibility #13

Open
mherna4 opened this issue Jul 20, 2024 · 0 comments
Open

WPML compatibility #13

mherna4 opened this issue Jul 20, 2024 · 0 comments

Comments

@mherna4
Copy link

mherna4 commented Jul 20, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant