-
AuthorPosts
-
September 6, 2017 at 6:34 pm #848796
Hi,
I’m seeing a special character instead of an ‘é’ as it should be within the avia-post-prev (image shared privately). As other accentuated characters do show up correctly within the same line, I don’t quite see what’s wrong. The page is utf-8 as it should, I have also tried to remove the word with the character, save the post, then add it back (actually typed it in to be sure there’s no copy-paste oddities) to the post title. Same result. I tried Firefox / Edge and Chrome with the same result.
Any suggestion?
Thanks!!September 7, 2017 at 8:59 pm #849225Hey wazkero1,
I checked your site and it does work properly on my end (screenshot in private content), is this already fixed?
Best regards,
NikkoSeptember 7, 2017 at 9:16 pm #849238No, not fixed for me – I just tried again in 2 different browsers.
On your screenshot, the avia-post-prev widget is closed, but if you hover it, are you saying the garbled character is not showing?
September 8, 2017 at 7:01 pm #849688Hi,
Please try adding following code to Functions.php file in Appearance > Editor
function add_subset_func($fontlist) { $fontlist .= "&subset=latin,latin-ext,cyrillic,cyrillic-ext"; return $fontlist; } add_filter('avf_google_fontlist', 'add_subset_func');Best regards,
YigitSeptember 8, 2017 at 7:10 pm #849692Hi Yigit,
I added your code to functions.php, but no luck. Note that I’m not using a google font (I think your code adds extra foreign characters to the google fonts load, right?). I’m using a custom font loaded locally, but it does include the ‘é’ character as it is displayed in numerous places over the site.
Thanks a lot for your help!!
September 11, 2017 at 4:08 am #850304Hi,
Please edit the functions-enfold.php file, look for this code around line 485:
$the_title = isset($entry->av_custom_title) ? $entry->av_custom_title : avia_backend_truncate(get_the_title($entry->ID),75," ");Replace it with:
$the_title = isset($entry->av_custom_title) ? $entry->av_custom_title : get_the_title($entry->ID);Best regards,
IsmaelSeptember 11, 2017 at 4:17 am #850305That works awesome. Strange that truncating the string would cause the garble…
Thanks very much for your help! Fantastic support, as always!
September 12, 2017 at 7:18 am #850787Hi,
Strange that truncating the string would cause the garble…
It’s possible in a few cases because the function limits the characters. You can actually change the value 75 to a higher one and it should work the same. We’ll close the thread now. Thank you for using Enfold.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.
