New Landing How can we help? Themeforest Theme Support Flexform Forcing custom font face?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Flexform
  • #144396
    piuomeno
    Member
    Post count: 4

    good evening, i’m trying to upload my own fonts uploaded with font squirrel, put them in child theme folder / fonts, and put this code in child theme style.css

    font-face {
        font-family: 'aracne_condensed_lightCnLt';
        src: url('fonts/aracne-condensed_light-webfont.eot');
        src: url('fonts/aracne-condensed_light-webfont.eot?#iefix') format('embedded-opentype'),
             url('fonts/aracne-condensed_light-webfont.woff2') format('woff2'),
             url('fonts/aracne-condensed_light-webfont.woff') format('woff'),
             url('fonts/aracne-condensed_light-webfont.ttf') format('truetype'),
             url('fonts/aracne-condensed_light-webfont.svg#aracne_condensed_lightCnLt') format('svg');
        font-weight: normal;
        font-style: normal;
    
    }
    
    @font-face {
        font-family: 'aracne_condensed_regularCnRg';
        src: url('fonts/aracne-condensed_regular-webfont.eot');
        src: url('fonts/aracne-condensed_regular-webfont.eot?#iefix') format('embedded-opentype'),
             url('fonts/aracne-condensed_regular-webfont.woff2') format('woff2'),
             url('fonts/aracne-condensed_regular-webfont.woff') format('woff'),
             url('fonts/aracne-condensed_regular-webfont.ttf') format('truetype'),
             url('fonts/aracne-condensed_regular-webfont.svg#aracne_condensed_regularCnRg') format('svg');
        font-weight: normal;
        font-style: normal;
    
    }
    
    h1, h2, h3, h4, h5, .custom-caption p, span.dropcap1, span.dropcap2, span.dropcap3, span.dropcap4, .wpb_call_text, .impact-text, .testimonial-text, .header-advert {
        font-family: 'aracne_condensed_regularCnRg'; !important}

    inspecting with chrome, it founds the font family commands, but is overwritten by the default one…
    if i unmark helvetica, my font appears, so it is loaded…

    i’ve tried a solution posted by kyle in another thread, commenting in sf-custom-styles.php ( http://www.swiftideas.com/forums/topic/override-theme-font-options/#post-51717 )
    but it isn’t working

    #144663
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please go to Admin -> Theme Options -> General Options -> Custom CSS.

    h1, h2, h3, h4, h5, .custom-caption p, span.dropcap1, span.dropcap2, span.dropcap3, span.dropcap4, .wpb_call_text, .impact-text, .testimonial-text, .header-advert {
        font-family: 'aracne_condensed_regularCnRg'; !important}

    Thanks
    Mohammad

    #145002
    piuomeno
    Member
    Post count: 4

    i could do it, thanks alot ๐Ÿ˜‰

    #145009
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register