如更新主題,更新後需修改父主題的參數(每次更新都會RESET)
A. Hueman
1. Hueman: 頁首 (header.php)
在<head>加上<meta http-equiv=”X-UA-Compatible” content=”IE=edge; chrome=1″ />
(用於強制IE10-11不使用相容式模式打開校網,避免變形)
2. Hueman: responsive.css
/* footer */
#footer-bottom .pad { padding-top: 35px; padding-bottom: 5px; }
(預設行動版的頁尾空白範圍太大,需把原有的50px,35px改成以上數字)
.s2-expand .s2 { background: #f0f0f0; position: absolute; top: 0; bottom: 0; width: 282px; margin: 0!important; z-index: 9; overflow: auto;
-moz-transition: width .2s ease; -webkit-transition: width .2s ease; transition: width .2s ease; }
260改282
3. Hueman: related-posts.php
(刪去發佈日期的顯示)
4. Hueman: 把子主題的圖像蓋過父主題
/var/www/html/wp-content/themes/hueman-clid/img/sidebar (s-right-s1.png, s-right-s2.png ,s-left.png, s-right-dual-s2.png)
/var/www/html/wp-content/themes/hueman/img/sidebar
(邊欄的底色)
B. SEO 修改
/var/www/html/wp-content/plugins/wordpress-seo/frontend/class-opengraph.php
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), apply_filters( ‘wpseo_opengraph_image_size’, ‘thumb-large‘ ) );