WordPress Official Theme: Twenty Fifteen

Twenty Fifteen

WordPress 4.0发布之后,同时官方有透露了Twenty Fifteen主题,这是WordPress于2015年将发布的新主题。Twenty Fifteen是默认的主题,以博客形式聚焦,设计非常简洁、清晰,简单字体的可读性,在各种各样的屏幕尺寸,适用于多种语言。设计首先考虑移动终端浏览,突出内容。同时适用于智能手机、平板电脑、笔记本电脑或台式电脑。

我刚才测试了一下,发现不错,对于中文显示超好,字体适中。但还不是拿起来就可以用的,需要做一些定制。相信未来Twenty Fifteen将是佐仔志长期使用主题之一。现在共享给大家,希望你会喜欢。

Twenty Fifteen主题下载:twentyfifteen

默认主题做了很多SEO工作,排名也比较高,往后认真写博客就是了。由于该主题还没正式发布,大家就赏赏新吧。以下图片来自官网。

tf1-525x1024

tf2-525x1024

tf3-525x1024

tf4-807x1024

tf5-807x1024

tf6-1024x827

tf7-1024x827

tf9-1024x796

tf10-1024x796

tf11-1024x796

tf12-1024x796

tf13-807x1024

WordPress Official Theme: Twenty Fifteen》有37个想法

    1. 佐仔

      我也暂时不考虑,因为现在这个主题还在蜜月期中。
      不过调很简单的,如果你用Chrome浏览器,按F12就可以快速找出需要修改的CSS代码。

      回复
    1. 佐仔 文章作者

      去掉“.sidebar”里的“overflow-y和position”两个CSS样式,边栏会显示非常好看。一个是不要下拉条,一个是与屏幕一起滚动。

      回复
    2. 佐仔 文章作者

      也可以用“Any Mobile Theme Switcher”插件实现用手机或移动终端访问题启用“Twenty Fifteen”,电脑就显示其它主题。我现在就是这样实现的,你可以用手机访问本博客试试。

      回复
    3. 佐仔 文章作者

      用“Any Mobile Theme Switcher”插件实现用手机或移动终端访问题启用“Twenty Fifteen”,电脑端显示我现在使用的主题,体验超棒,你可以试试。

      回复
          1. 安心

            有一代码可以解决:
            function devework_replace_open_sans() {
            wp_deregister_style(‘open-sans’);
            wp_register_style( ‘open-sans’, ‘//fonts.useso.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600’ );
            wp_enqueue_style( ‘open-sans’);
            }
            add_action( ‘wp_enqueue_scripts’, ‘devework_replace_open_sans’ );
            add_action(‘admin_enqueue_scripts’, ‘devework_replace_open_sans’);

            加到 function.php里面去。

            回复
          2. 大肥羊

            // 禁止后台加载谷歌字体
            function wp_remove_open_sans_from_wp_core() {
            wp_deregister_style( ‘open-sans’ );
            wp_register_style( ‘open-sans’, false );
            wp_enqueue_style(‘open-sans’,”);
            }
            add_action( ‘init’, ‘wp_remove_open_sans_from_wp_core’ );
            // 禁用谷歌字体
            add_filter( ‘gettext_with_context’, ‘dqx_disable_google_fonts’, 888, 4);
            function dqx_disable_google_fonts($translations, $text, $context, $domain ) {
            $google_fonts_contexts = array(‘Open Sans font: on or off’,’Lato font: on or off’,’Source Sans Pro font: on or off’,’Bitter font: on or off’);
            if( $text == ‘on’ && in_array($context, $google_fonts_contexts ) ){
            $translations = ‘off’;
            }

            return $translations;
            }
            不知道两个效果是不是一样的,我两段同时用了。

            回复
            1. 佐仔 文章作者

              不用那么复杂,直接以下代码既可。

              //禁用Google字体
              add_filter( 'gettext_with_context', 'disable_google_fonts', 888, 4);
              function disable_google_fonts($translations, $text, $context, $domain ) {
                  $google_fonts_contexts = array('Open Sans font: on or off','Lato font: on or off','Source Sans Pro font: on or off','Bitter font: on or off');
                  if( $text == 'on' && in_array($context, $google_fonts_contexts ) ){
                      $translations = 'off';
                  }
              
                  return $translations;
              }
              

              同样放在 function.php里面既可。

回复 大肥羊 取消回复

您的电子邮箱地址不会被公开。 必填项已用*标注