当前分辨率:

主题推荐的顶部图像尺寸为1920 × 721像素

主题推荐的顶部图像尺寸为1600 × 601像素

主题推荐的顶部图像尺寸为1366 × 513像素

主题推荐的顶部图像尺寸为1024 × 385像素

主题推荐的顶部图像尺寸为1000 × 376像素

上传:

创建wp-content/uploads文件夹,使用chmod授权

问题: 页面的地址是中文,无法显示。

官方插件https://cn.wordpress.org/plugins/

优秀插件 http://www.wowrk.com/27-must-have-wordpress-plugins/ http://www.topthink.com/topic/10295.html

让WordPress支持代码高亮: http://www.pp2d.com/?p=188 直接到https://cn.wordpress.org/plugins/syntaxhighlighter/ 下载,上传完后刷新后台,记得启用插件。

WordPress 禁用 Gravatar 头像 http://www.endskin.com/hide-avatar/

画廊插件 http://www.lihuai.net/web/2390.html

slider插件

https://cn.wordpress.org/plugins/slider-image/  这个插件介绍 http://www.wopus.org/plugins/sliders/2596.html

https://cn.wordpress.org/plugins/slider-slideshow/

修改代码记录:

增加备案号:wordpress/wp-content/themes/twentysixteen/footer.php ,使用chmod授权, 外观–编辑–footer.php, 在site-info这个div里面加入 http://www.xiariboke.com/soft/1973.html 描述的信息。

去掉四边的黑色边框:使用chmod授权wordpress/wp-content/themes/twentysixteen/style.css, 修改@media screen and (min-width: 44.375em)下面的 after,befor,注释调height, 同时  .site { /*margin: 21px;*/ },就可以去掉四边的黑色边框

文章宽度变大:body:not(.search-results) article:not(.type-page) .entry-content  width:100%;

文章底部信息调整:

增加css

准备修改源码: 使用chmod授权/wordpress/wp-content/themes/twentysixteen/template-parts

备份: cp /home/dev/php/wordpress/wp-content/themes/twentysixteen/inc/template-tags.php /home/dev/php/wordpress/wp-content/themes/twentysixteen/inc/template-tags.php.bak

这个路径下面文件说明:content.php  列表里面显示文章, <?php twentysixteen_entry_meta(); ?> 这个方法输出底部信息。定义在 inc/template-tags.php:line20,  复制这个方法,变成一个_header, _footer,然后处理里面的内容,让这两个方法,一个顶部显示,一个底部显示。

友情连接:

无插件:http://www.caopeng.net/2011/09/achieve-wordpress-only-home-show-links/ 使用这个方式,参考:http://www.sunjianbo.com/wordpress-link-manager.html  http://www.phpsong.com/1347.html

使用chmod授权wordpress/wp-includes/functions.php, wordpress/wp-content/themes/twentysixteen/functions.php

底部增加: add_filter( “pre_option_link_manager_enabled”, “__return_true” ); , 然后去添加友情连接这个分类,增加连接到这个分类里面去。然后修改footer.php,  增加代码<?php wp_list_bookmarks(); ?>到其中位置,最后做样式:

配置底部信息:

字体:

http://blog.sina.com.cn/s/blog_6f6b4c3c0100tui5.html

http://blog.csdn.net/jubincn/article/details/7707586

图片滚动插件: carousel-slider.1.5.0

配置后,单页面没问题,但是列表页面有问题,是因为下面没有导入。这个可能需要放到header.php那里去。

使用chmod授权wordpress/wp-content/themes/twentysixteen/header.php

注意,在单页面可能重复载入,先不理会这个问题

对jQuery的支持: 

https://www.wpzhiku.com/the-right-way-to-use-jquery-in-wordpress/

 

访问量统计插件wp-postviews : http://www.51lingguang.com/?p=236

官方说明

  1. Open wp-content/themes/<YOUR THEME NAME>/index.php
  2. You may place it in archive.php, single.php, post.php or page.php also.
  3. Find: <?php while (have_posts()) : the_post(); ?>
  4. Add Anywhere Below It (The Place You Want The Views To Show): <?php if(function_exists('the_views')) { the_views(); } ?>
  5. Or you can use the shortcode 人气: 3,837 or 人气: 1,980 (where 1 is the post ID) in a post

 

自動升級的FTP設定 http://hack.twgg.org/phpbb/viewtopic.php?t=109

wp-config.php 追加:

define(‘FS_METHOD’, ‘ftpext’);
define(‘FTP_BASE’, ‘/home/dev/php/wordpress/’);
define(‘FTP_CONTENT_DIR’, ‘/home/dev/php/wordpress/wp-content/’);
define(‘FTP_PLUGIN_DIR ‘, ‘/home/dev/php/wordpress/wp-content/plugins/’);
define(‘FTP_USER’, ‘username’);
define(‘FTP_PASS’, ‘password’);
define(‘FTP_HOST’, ‘ftp.example.org:21’);
define(‘FTP_SSL’, false);

 

自动清理插件 Optimize Database after Deleting Revisions : https://cnzhx.net/blog/wordpress-revisions-clean-plugin/#rvg-optimize-database

 

Count Per Day 一个访问量统计插件

http://www.innovext.com/tw/2014/03/28/count-per-day-%E9%BB%9E%E9%96%B1%E7%B5%B1%E8%A8%88%E5%A4%96%E6%8E%9B/