[Plugin: Yoast Breadcrumbs] Doesn't work with special charactres
The plugin doesn’t work if you put special (national) characters into the settings, e.g. “Anchor text for the Homepage:”
I have changed the encoding of the plugin to UTF-8 – it doesn’t solve the issue. Special characters get overwritten and cannot be saved.
Yes, same here. Can someone help us. It
s good plugin, but without special characters support its not working for me. Please, reply with solution. Thanks.
Converting to UTF-8 is no solution.
I find the solution.
1. In yst_plugin_tools.php on line 165 and 203 find this function: “htmlentities” and replace it with “stripslashes”.
2. Edit Yoast Breadcrumbs plugin in wordpress admin page. Replace Home, Blog etc. with words from your native language:
$opt[‘home’] = “Home(Wordinyourlanguage)”;
$opt[‘blog’] = “Blog(Wordinyourlanguage)”;
$opt[‘sep’] = “»”;
$opt[‘prefix’] = “You are here:(Wordinyourlang.)”;
$opt[‘boldlast’] = true;
$opt[‘nofollowhome’] = false;
$opt[‘singleparent’] = 0;
$opt[‘singlecatprefix’] = true;
$opt[‘archiveprefix’] = “Archives for(Wordinyourlanguage)”;
$opt[‘searchprefix’] = “Serches for(Wordinyourlanguage)”;
3. Go to Settings/Breadcrumbs and again replace Home, Blog etc. with words from your native language.
In WordPress admin panel this words are still showing like this “Ð�Ð°Ñ�Ð°Ð»Ð¾”, but on website everything is good.
Good luck 😉
Original post is here, but it`s uncomplete:
Thanks for posting back.
However, my problem isn’t that special characters display incorrectly, but that “Special characters get overwritten and cannot be saved.”
I put in a word in Polish, save settings and when I leave the page it goes back to “Home” again. It only saves the value if I use no special characters.
I replaced “htmlentities” with “stripslashes” but it didn’t help.
You should make steps 2 and 3. Maybe i did not explain correctly. After step 1 you must edit yoast-breadcrumbs.php and write you special characters in the correct fields. And after that write them again in wordpress admin/Settings/Breadcrumbs. Then it somehow recognize them and everything is ok.
Only replacing “htmlentities” with “stripslashes” is not enought. Try it again.
- The topic ‘[Plugin: Yoast Breadcrumbs] Doesn't work with special charactres’ is closed to new replies.