Before you ask please READ THIS

Adamant google font disabled china

edited May 2015 in Adamant Posts: 2
I have a critical issue with Google-fonts being in China. Ideally I would like to use current fonts but from http://www.youziku.com/ (they have raleway as well as others).

Worst comes to worst entirely disable google-fonts.
Loading google-fonts prevents site from loading properly or at all from china.

Im pretty sure there is a simple fix but I havent found it yet with Adamant. I tried plugins but they are overrun by theme code, i tried html but same response.
That’s what i am trying to use http://www.youziku.com/webfont/Details?fontID=46818

Any ideas ? that would be a life saver

Comments

  • edited May 2015 Posts: 1,758
    ea99 said: http://www.youziku.com/
    this page is blocked when using china fonts? this page is not using Adamant theme, is it?
    ea99 said: That’s what i am trying to use http://www.youziku.com/webfont/Details?fontID=46818
    blind link, can't access, need login credentials.
    Post edited by surgeon on
    Remember to rate our theme if you like it ;)
    All the Best.
  • Posts: 2
    Hum,
    Youkuzi would give me that to put in body:
    异步加载方式(适用于大量文本)
    将以下代码添加到您网页的标签之后,标签之前。


    WebFont.load({
    custom: {
    urls: ['http://www.youziku.com/webfont/NameCSS/46818']
    }
    });


    But that's not the issue. the issue is how do i Block google fonts from Adamants?
  • Posts: 1,758
    You must edit theme-options.php file (..\wp-content\themes\adamant\theme-options.php),
    find all 'typography' field defifnitions (simply search for 'typography', there are 4 such definitions) so You'll get something like this:
    
                        array(
    				'id'            => 'layout_header_font',
    				'type'          => 'typography',
    				'title'         => __be( 'Font settings for header' ),
    				'subtitle'      => "",
    				'google'        => true,
    				'default'       => array(
    					'color'        => '#ffffff',
    					'font-size'    => '13px',
                                            'line-height'  => '30px',
    					'font-family'  => 'Montserrat',
    					'font-weight'  => '700',
                                            'google'       => true,
    				),
    			),
    
    and change
    'google' => true,
    to
    'google' => false,

    then go to Admin Panel>>Adamant Options, change font settings, and save changes.
    Remember to rate our theme if you like it ;)
    All the Best.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion