-
AuthorPosts
-
October 29, 2014 at 2:48 am #342525
Hi,
sorry for all the SPAM, our website is almost done, after that I’m gonna shut up >D… But I have another issue here – can’t gen custom category images :(. After I didn’t find anything on this forum and neither in the documentation, I tried a few plugins like Featured Images for Categories, Taxonomy Images and few others. None of them worked :(. For instance Images for Categoies didn’t even display me an option to add an image, rest of the plugins did and let me add an image, but showed nothing on the frontend :(.
Is it somehow blocked by the theme or something? Please share some of your wisdom with me :).
Thanks in advance!
MathyOctober 30, 2014 at 9:03 pm #343675Hi Mathy!
at least the second plugin should work. Do you mind giving us admin access to your website? post it here as a private reply.
Regards,
AndyOctober 31, 2014 at 6:11 pm #344216This reply has been marked as private.November 3, 2014 at 6:34 am #345087Hi!
Thank you for the update.
You didn’t install the suggested plugins above. Please install the plugins then we’ll check it for you. I checked the site on Firefox and the diacritics symbols looks fine. Yes, a Czech translation for Enfold would be great. :)
Regards,
IsmaelNovember 3, 2014 at 12:41 pm #345217Hi Ismael,
I uninstalled them because they didn’t work, leaving posibility to install any plugin. I installed back the “Taxonomy Images” plugin. It really doesn’t work :(. You can take a look now.
On my website, I did only some tiny modifications on child theme in css and functions.php, otherwise it is completely clean Enfold :-/. Could it be some problem with server settings?
The font looks ok only in Windows8. In every older system it looks like this:
https://www.dropbox.com/s/pe75r00abgq69y9/diakritika.png?dl=0
I think that I have a solution for this (as I wrote above), but I think that it would be cool to fix it even on your side, because the same problem will have all your Slavonic customers (ok, Czech rep is not so big, but Poland for instance is)Thanks for hints
Mathy- This reply was modified 10 years ago by etnMathy.
November 4, 2014 at 8:51 pm #346100Hi!
Sorry about that. The suggested plugin is not working but this one works like a charm. Please use this one: http://premium.wpmudev.org/blog/how-to-add-feature-images-to-your-wordpress-categories/
Not all fonts have subset latin extensions or support all character sets. If you want, you can use this filter to manually add the extension on specific fonts if they support it:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); add_filter( 'avf_google_content_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Open Sans Subset'] = 'Open Sans:400,600&subset=latin,latin-ext'; return $fonts; }
Select Open Sans Subset as Heading Font on General Styling panel.
Regards,
IsmaelNovember 5, 2014 at 1:22 am #346296Yaaaay, thank you, the picture is in place :).
The font is slightly pain in the arse though, because the filter function doesn’t work properly for me :(. I know that the font supports all the characters, because I managed to add the postfix by hand in Firebug, as seen on this screenshot. And then everything was nice and beautifull.
But I think I ran into this problem with filters with Josue once before, when we were setting a custom icon in the picture overlay, take a look on what he wrote to me before. Is there any alternative to the filter?
Thanks alot and have a nice day :).
MathyPS: Have you tried any of our vids ;)?
November 6, 2014 at 3:29 am #346938Hey!
Try to move the code on line 17 of functions.php, right below this code:
if(isset($avia_config['use_child_theme_functions_only'])) return;
I know you’re using a child theme but this filter is a bit buggy so it doesn’t work sometimes when you put it at the very bottom of functions.php. Let’s try it on the parent theme functions.php. Create a change log of this modification so you can add it again when you update the theme. Make sure that you set Open Sans Subset on General Styling > Font > Heading font. You can also set this for the Main Menu Links’ Font Family on Enfold > Advanced Styling Panel.
I did caught a glimpse of one of the videos, medieval war. The 4 and half minutes of battle looks awesome. :)
Best regards,
IsmaelNovember 11, 2014 at 3:24 pm #349388Hello Ismael,
I’m not suer If I get you right. In parent theme version of functions.php is the mentioned code on line 16. So I moved it up on line 5 right under the:
global $avia_config;
No no change whatsoever.In child theme, there is absolutely nothing around line 17 (there is some commented function I’ve been trying earlyer for favicon).
So where should I transfer which code please O:-)?Btw the battle is real, it’s the biggest and coolest medieval event here :).
Thanks and looking forward to hearing from you
MathyNovember 12, 2014 at 8:24 pm #350302Hi!
Add the google font filter below line 16 of the parent theme’s functions.php file. It should work. Make sure that you set Open Sans Subset on General Styling > Font > Heading font. You can also set this for the Main Menu Links’ Font Family on Enfold > Advanced Styling Panel. Please create a log of these changes in case you update the theme.
Cheers!
IsmaelNovember 17, 2014 at 12:23 am #352219Hi,
I got you wrong last time. I did as you told me, moved the code in the parent functions.php, after that, the whole web – including the backend – showed me blank page (no error displayed).
What now :( ?
M.November 18, 2014 at 12:59 am #352791Hey!
Line 16 should look like this.
if(isset($avia_config['use_child_theme_functions_only'])) return;
So you need to add the code right below it so it should look like this.
if(isset($avia_config['use_child_theme_functions_only'])) return; add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); add_filter( 'avf_google_content_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Open Sans Subset'] = 'Open Sans:400,600&subset=latin,latin-ext'; return $fonts; }
Let us know if that works.
Cheers!
ElliottNovember 20, 2014 at 2:29 am #354094Hi,
I did exactly as You told me but still ended up with a white screen :(.
November 20, 2014 at 11:47 am #354218Hi!
I’m sorry but I tried it on your functions.php and the white screen does occur. Did you remove the function on the child theme? I didn’t check. Please override the parent theme functions.php file. Sorry for the inconvenience.
Cheers!
IsmaelNovember 27, 2014 at 10:52 am #358930We set it back again. Any idea about what could be wrong? Please don’t change anything, the web is hot now and I don’t have a devel for it since this is my personal small project O:-). I could send you an FTP if it could help you.
Anyhow, I recieved a demand on some new small website yesterday , and I would like to buy a new instance of Enfold for it. But I would really like to solve this one, since this would be a payed project :(
Thanks and have a nice day!
MathyNovember 27, 2014 at 4:15 pm #359043Sorry, didn’t get your last reply, duno why :(. I’ll try it and let you know. Thanks!
November 28, 2014 at 12:42 am #359284Hey!
I think the white screen error occurs because you didn’t remove the function or code on the child theme. Please remove duplicated codes then add it again on the parent theme’s functions.php.
Regards,
IsmaelNovember 28, 2014 at 10:16 am #359472This reply has been marked as private.November 29, 2014 at 6:18 am #360022Hi!
I was able to add it to the child theme functions.php and the new option now shows as expected, please check it.
Cheers!
JosueNovember 30, 2014 at 1:41 am #360169Hello,
the subset-latin post-fix appears, but not where we need it. I need it as I showed it in the screenshot above, where I edited the code right in the browser. Here is it described. The postfix is added somewhere (red frame), but I need it on the place, where the arrow points.Then it works fine.
Right now it looks like this (for instance):
- W8 – MSIE 11 – for instance check the main menu, letter Ř in “Pořady” and Č in heading “Články”
- W7 – FF – the same problem
November 30, 2014 at 4:47 am #360208Hi!
It appears there now, you needed to select the font here – http://screencast.com/t/xLi0eH6Nhz
Cheers!
JosueDecember 9, 2014 at 12:27 pm #365283Gosh, sure I need, I forgot, thanks.
So let’s recap this (maybe we could make a new topic and delete this long one so others can benefit too?):1) Custom category image – the plugin verified to be functional for the purpose is this one:
http://premium.wpmudev.org/blog/how-to-add-feature-images-to-your-wordpress-categories/2) Subset-lating postfix for wider character support is enabled by:
– adding this code to the functions.php (best practice is to add it to the child theme functions.php – duno why this didn’t work for me for the first time :P):add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); add_filter( 'avf_google_content_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Open Sans Subset'] = 'Open Sans:400,600&subset=latin,latin-ext'; return $fonts; }
– DON’T FORGET to enable it in backend in Enfold → General styling → Fonts
December 10, 2014 at 2:12 am #365776 -
AuthorPosts
- The topic ‘Custom category image’ is closed to new replies.