又折腾,把Twntytwelve子主题改为TangStyle

  • A+
所属分类:WordPress

说好了不折腾主题的,现在又折腾了。用了Twentytwevle Child Theme一段时间了。想当初做这个子主题可真是费了很大的劲。但是今天还是把Twntytwelve子主题弃用了,改为TangStyle。

TangStyle这个主题比较对我的品味,简单大方。我不太喜欢花哩胡哨的东西,简单最好。发现了TangStyle这个子主题比较对我的品味。另外还有一个Rcloud主题,是国人制作的,也不错。但是Rcloud主题与无觅插件不兼容。当初改到是改了兼容了,但是最后还是放弃了。

这个TangStyle也改了一段时间。

更改的TangSyle的内容有

1、样式,更改了一些字体和内容样式。
2、侧栏,加入了最热文章。话说TangStyle也有最热的调用,但是更改的是调用的Post-Views的函数和主题自带的函数。
3、侧栏加入随机推荐,标签云等等。
4、更改标签云为彩色标签。
5、主题CSS加入了一些自定义的语句
6、更改Header.php,修改了默认的一些东西。
7、其它小细节修改。

为了纪念我的TwentyTwelve子主题,也记录一下子主题所修改过的内容。

1、修改样式,以更美观(个人观点和审美观点)
2、修改了内容显示样式
3、Header.php中加入了网站关键词
4、彩色标签
5、自动调用Post-Views和自动分页插件
6、侧栏加入最热文章和随机推荐
7、去除调用Google字体,不然加载太慢。
8、更改缩略图大小
9、自动摘要字数修改
10、首页自动摘要
11、其它小细节修改。

 

weinxin
公众号
科研动力微信公众号,欢迎关注!

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:5   其中:访客  5   博主  0

    • avatar Yellow 1

      如何去除调用Google字体?

        • avatar Brainu 5

          @Yellow 在functions.php中添加以下代码即可/**不加载Google字体*/function mytheme_dequeue_fonts() { wp_dequeue_style( ‘twentytwelve-fonts’ ); }add_action( ‘wp_enqueue_scripts’, ‘mytheme_dequeue_fonts’, 11 );

          • avatar Brainu 5

            @Yellow 如果是父方题,删除以下代码,在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;}

            • avatar Brainu 9

              @Yellow 如果是父方题,删除以下代码,在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;}

            • avatar 狂人日记 0

              really nice theme!