-
AuthorPosts
-
October 29, 2015 at 11:14 pm #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:
Combo widget, second tab
Thank you.
October 30, 2015 at 4:39 pm #527541Hi 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!
YigitOctober 31, 2015 at 7:57 pm #527954Unfortunately 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
- This reply was modified 9 years ago by oroshazimedia.
November 2, 2015 at 5:41 pm #528686Hey!
Do you mind posting FTP credentials here as well? We would like to check wp-config.php file
Regards,
YigitNovember 2, 2015 at 8:38 pm #528782Wpconfig.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.
- This reply was modified 9 years ago by oroshazimedia.
November 9, 2015 at 9:56 pm #532917On 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
November 9, 2015 at 10:21 pm #532923The 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
- This reply was modified 9 years ago by oroshazimedia.
-
AuthorPosts
- The topic ‘Strange character in Combo Widget’ is closed to new replies.