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

    #343675

    Hi 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,
    Andy

    #344216
    This reply has been marked as private.
    #345087

    Hi!

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

    #345217

    Hi 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.
    #346100

    Hi!

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

    #346296

    Yaaaay, 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 :).
    Mathy

    PS: Have you tried any of our vids ;)?

    #346938

    Hey!

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

    #349388

    Hello 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
    Mathy

    #350302

    Hi!

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

    #352219

    Hi,

    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.

    #352791

    Hey!

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

    #354094
    #354218

    Hi!

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

    #358930

    We 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!
    Mathy

    #359043

    Sorry, didn’t get your last reply, duno why :(. I’ll try it and let you know. Thanks!

    #359284

    Hey!

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

    #359472
    This reply has been marked as private.
    #360022

    Hi!

    I was able to add it to the child theme functions.php and the new option now shows as expected, please check it.

    Cheers!
    Josue

    #360169

    Hello,

    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
    #360208

    Hi!

    It appears there now, you needed to select the font here – http://screencast.com/t/xLi0eH6Nhz

    Cheers!
    Josue

    #365283

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

    #365776

    Hi!

    Thanks for the recap. We’ll close this thread now. :)

    Regards,
    Ismael

Viewing 23 posts - 1 through 23 (of 23 total)
  • The topic ‘Custom category image’ is closed to new replies.