Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #527205

    Hi!

    I have a problem with the combo widget. A Strange � character appears at the end of the title (truncated).

    Here is the test site I’m working on:

    http://web.bekesmegye.hu/

    Combo widget, second tab

    Thank you.

    #527541

    Hi oroshazimedia!

    Please try adding following code to Functions.php file in Appearance > Editor

    function add_subset_func($fontlist) {
    	$fontlist .= "&subset=latin-ext";
    	return $fontlist;
    }
    add_filter('avf_google_fontlist', 'add_subset_func');

    If that does not help, please create a temporary admin login and post it here privately.

    Cheers!
    Yigit

    #527954

    Unfortunately this does not help, even if I switch on Open Sans, or Arial instead of my default Georgia font.

    I do not think its a problem with latin-ext subset, because the character which is in the original post is <á>, this is a standard character, not latin-extended subset, as far as I know. Maybe the php file containing the code for this tab should be set to the proper character set in its properties.

    example: http://stackoverflow.com/questions/5056646/how-to-set-utf-8-encoding-for-a-php-file

    #528686

    Hey!

    Do you mind posting FTP credentials here as well? We would like to check wp-config.php file

    Regards,
    Yigit

    #528782

    Wpconfig.php is fine. Collate is set to utf8mb4. Datbase collate is set to utf8. Utf8mb4 is 100% backward compatible with utf8.

    I’ve checked your theme files, seems to me that the php files involved in creating the tab part are set to utf8 (the correct one). Maybe the shortening function somewhere can cause this problem.

    #532917

    On a site with a previous version of Enfold (3.2.3) it behaves as expected without error. Interestingly this previous Enfold does not shorten the title! This way it does not cause any erreneous character. Maybe you should take out this shortening code from a newer enfold.

    Thank you, Mihály

    #532923

    The temporary solution is here: Modify Enfold/framework/php/class-framework-widgets.php

    Change line 1040 (in the <get posts posts> avia_get_post_list function part)

    original:
    echo “<strong class=’news-headline’>”.avia_backend_truncate(get_the_title(), 55,” “);

    to this:
    echo “<strong class=’news-headline’>”.avia_backend_truncate(get_the_title(), 100,” “);

    Maybe we can rewrite this function in the child theme’s functions.php

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Strange character in Combo Widget’ is closed to new replies.