Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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!!

    #849225

    Hey wazkero1,

    I checked your site and it does work properly on my end (screenshot in private content), is this already fixed?

    Best regards,
    Nikko

    #849238

    No, 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?

    #849688

    Hi,

    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,
    Yigit

    #849692

    Hi 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!!

    #850304

    Hi,

    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,
    Ismael

    #850305

    That works awesome. Strange that truncating the string would cause the garble…

    Thanks very much for your help! Fantastic support, as always!

    #850787

    Hi,

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.