Wordpress Theme:Kubrick(wide)宽版

欢迎您再次到来,你可以按日期浏览 | 按分类浏览本站所有文章!如果你喜欢本站内容,也可以订阅本站

可以直接去下载修改好主题,Wordpress default theme 1024 wide(或skydrive下载)。

也可以自己去自己修改,这里所谓的宽版是指760px变984px,增加224px,修改的内容如下:

  1. /wp-content/themes/default/images/kubrickheader.jpg
  2. /wp-content/themes/default/images/kubrickbgwide.jpg
  3. /wp-content/themes/default/images/kubrickfooter.jpg
  4. /wp-content/themes/default/images/kubrickbg-ltr.jpg
  5. /wp-content/themes/default/images/header-img.php
  6. /wp-content/themes/default/style.css

图片好修改,其他具体的修改方法看WordPress theme: Kubrick (wide)

header-img.php的修改内容:

The php file is a bit more complicated. This file reads kubrickheader.jpg, modifies it with your chosen colours and adds the white rounded corners. Again, the only changes here are adding 224 to some of the numbers in this file. We don’t even need to work these out, we can just append “+224″ to the existing numbers where appropriate. First we change the $corners array from
0 => array ( 25, 734 ),
to
0 => array ( 25, 734+224 ),
and do this for every entry in the array.

Slightly lower down in the “Blank out the blue thing” for loop, we change
$x2 = 740;
to
$x2 = 740+224;

and again in the “Draw a new color thing” for loop, we do the same thing, changing
$x2 = 739;
to
$x2 = 739+224;

style.css的修改内容:

@@ -41,9 +41,9 @@

 #headerimg     {
        margin: 7px 9px 0;
        height: 192px;
-       width: 740px;
+       width: 964px;
        }

@@ -236,18 +236,18 @@
 #page {
        background-color: white;
        margin: 20px auto;
        padding: 0;
-       width: 760px;
+       width: 984px;
        border: 1px solid #959596;
        }

 #header {
        background-color: #73a0c5;
        margin: 0 0 0 1px;
        padding: 0;
        height: 200px;
-       width: 758px;
+       width: 982px;
        }

@@ -258,15 +258,15 @@
 .narrowcolumn {
        float: left;
        padding: 0 0 20px 45px;
        margin: 0px 0 0;
-       width: 450px;
+       width: 674px;
        }

 .widecolumn {
        padding: 10px 0 20px 0;
        margin: 5px 0 0 150px;
-       width: 450px;
+       width: 674px;
        }

@@ -311,9 +311,9 @@

 #footer {
        padding: 0;
        margin: 0 auto;
-       width: 760px;
+       width: 984px;
        clear: both;
        }

@@ -570,9 +570,9 @@
 /* Begin Sidebar */
 #sidebar
 {
        padding: 20px 0 10px 0;
-       margin-left: 545px;
+       margin-left: 769px;
        width: 190px;
        }


声明:本站遵循 署名-非商业性使用-相同方式共享 3.0共享协议,转载请注明转自SelfCares。(本文链接

Post a Comment

Your email is never shared. Required fields are marked *

*
*