子主题修改php,又折腾,把Twntytwelve子主题改为TangStyle | 科研动力

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 17:29   1948   0

如果是父方题,删除以下代码,在functions.phpfunction twentytwelve_get_font_url() {$font_url = ”;/* translators: If there are characters in your language that are not supported * by Open Sans, translate this to ‘off’. Do not translate into your own language. */if ( ‘off’ !== _x( ‘on’, ‘Open Sans font: on or off’, ‘twentytwelve’ ) ) {$subsets = ‘latin,latin-ext’;/* translators: To add an additional Open Sans character subset specific to your language, * translate this to ‘greek’, ‘cyrillic’ or ‘vietnamese’. Do not translate into your own language. */$subset = _x( ‘no-subset’, ‘Open Sans font: add new subset (greek, cyrillic, vietnamese)’, ‘twentytwelve’ );if ( ‘cyrillic’ == $subset )$subsets .= ‘,cyrillic,cyrillic-ext’;elseif ( ‘greek’ == $subset )$subsets .= ‘,greek,greek-ext’;elseif ( ‘vietnamese’ == $subset )$subsets .= ‘,vietnamese’;$protocol = is_ssl() ? ‘https’ : ‘http’;$query_args = array(‘family’ => ‘Open+Sans:400italic,700italic,400,700’,‘subset’ => $subsets,);$font_url = add_query_arg( $query_args, “$protocol://fonts.googleapis.com/css” );}return $font_url;}

0

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP