首页 > wordpress > 修改wordpress默认主题宽版加导航

修改wordpress默认主题宽版加导航

2010年1月29日 eric 发表评论 阅读评论

自从blog开放以来一直在修改wordpress的默认主题,很多人问我为什么用默认主题,我的回答都是我很喜欢这款`主题没办法,个人喜好问题,改来改去改的很痛苦,因为本人对 CSS 不懂,改的很吃力,网上也有宽屏版的默认主题,大家可以去下,我是手动改的。

一.修改CSS,改为宽屏版:

1. 把图下到windows 下,把图用photoshop修改都加宽到960象素。

kubrickbg-ltr.jpg    kubrickbg-rtl.jpg   kubrickfooter.jpg  kubrickheader.jpg

2. 修改style.css

下面是我修改的 style.css

点击上面的style.css 下载

二.给文章页面加边栏。

1.修改 single.php 在底部加入

<?php get_sidebar(); ?>

2.修改 single.php 用首页的类

把 <div id=”content” class=”widecolumn” role=”main”>

改为

<div id=”content”  class=”narrowcolumn” role=”main”>

三,给默认主题,加横向 导航栏.

1.修改 style.css

如果你下载我的 style.css 的话,就可以略过这一步

在最下面加入

#navBar a{
        color: #FFFFFF;
        font-size: 15px;
        text-decoration: none;
}
#navBar{
        margin-left:27px;
        padding:0px;
}
#innerNavBar{
        margin-left:0px;
        margin-right:0px;
        padding: 10px 10px 0px 10px;

}

.userdir{
        color:#cf0;
        float:left;
        width:100%;
        vertical-align:bottom;
}
.userdir a{
        color:#fff;
}

2.然后修改 header.ph 加入导航:

把 <div id=”header” role=”banner”>
        <div id=”headerimg”>
                <h1><a href=”<?php echo get_option(‘home’); ?>/”><?php bloginfo(‘name’); ?></a></h1>
                <div><?php bloginfo(‘description’); ?></div>
        </div>
</div>

<hr />

改为:

<div id=”header” role=”banner”>
        <div id=”headerimg”>
                <h1><a href=”<?php echo get_option(‘home’); ?>/”><?php bloginfo(‘name’); ?></a></h1>
                <div><?php bloginfo(‘description’); ?></div>
        </div>
        <div id=”navBar”>
        <div id=”innerNavBar”>
        <div>
        <a href=”/”>home</a>
        | <a href=”/linux/category/linux”>linux</a>
        | <a href=”/linux/category/ubuntu”>ubuntu</a>
        | <a href=”/linux/category/xen”>xen</a>
        | <a href=”/linux/category/dns”>dns</a>
        | <a href=”/linux/category/iptabes”>iptables</a>
</div>
</div>
</div>

</div>
<hr />

然后就成我现在 这样了“

喜欢默认主题的朋友如果有兴趣,修改下吧!!

转载请注明:文章转载自:Eric's linux and nginx! (http://www.nginxs.com)
本文地址:http://www.nginxs.com/linux/53.html

分类: wordpress 标签: , ,
  1. 2018年6月8日18:49 | #1

    get auto insurance online the general car insurance the general car insurance [url=https://generalcarinsurance.us.com]general car insurance quote[/url]

  2. 2018年6月21日13:17 | #2

    What Do Expertise Brokers Look For In Actors?

  3. 2018年6月21日16:25 | #3

    Most actors make investments their time and efforts poorly.

  4. 2018年6月21日19:35 | #4

    What Do Talent Brokers Look For In Actors?

  5. 2018年6月21日19:45 | #5

    Well rounded people often make good actors.

  6. 2018年6月22日13:28 | #6

    What Do Talent Agents Look For In Actors?

  7. 2018年6月22日21:34 | #7

    Most actors make investments their time and efforts poorly.

  8. 2018年6月22日23:49 | #8

    Most actors invest their time and efforts poorly.

  9. 2018年6月23日00:29 | #9

    Most actors invest their time and efforts poorly.

  10. 2018年6月23日01:55 | #10

    What Do Expertise Brokers Look For In Actors?

  11. 2018年6月23日03:37 | #11

    Properly rounded people often make good actors.

  12. 2018年6月23日11:45 | #12

    What Do Talent Agents Look For In Actors?

  13. 2018年6月23日12:23 | #13

    Properly rounded people often make good actors.

  14. 2018年6月23日14:32 | #14

    mortgages companies home refinance companies best mortgage companies [url=https://mortgagecompanies.us.com]best mortgage companies[/url]

  15. 2018年6月23日18:57 | #15

    Properly rounded individuals normally make good actors.

  16. 2018年6月23日19:01 | #16

    Properly rounded individuals usually make good actors.

  17. 2018年6月23日19:46 | #17

    Most actors invest their time and efforts poorly.

  18. 2018年6月23日20:52 | #18

    viagra and cialis price comparison
    buy cialis
    when is cialis going generic in the us
    [url=http://cialisprod.com/]buy generic cialis[/url]
    why separate bathtubs in cialis commercials

  19. 2018年6月24日15:34 | #19

    Most actors make investments their time and efforts poorly.

  20. 2018年6月24日17:57 | #20

    Properly rounded folks often make good actors.

  21. 2018年6月24日18:22 | #21

    Most actors make investments their time and efforts poorly.

  22. 2018年6月24日23:05 | #22

    home loans wells fargo home loans home loans with bad credit [url=https://homeloans.us.org]home loans[/url]

  23. 2018年6月25日01:26 | #23

    Effectively rounded people usually make good actors.

  24. 2018年6月25日01:42 | #24

    Well rounded individuals normally make good actors.

  25. 2018年6月25日02:07 | #25

    Head turns permit the eyes to touch upon a state
    of affairs.

  26. 2018年6月25日04:30 | #26

    Effectively rounded folks often make good actors.

  27. 2018年6月25日06:42 | #27

    auto insurance quotes online direct auto insurance car insurance comparison [url=https://autoinsurancequotescomparison2018.us.com]auto insurance quotes comparison[/url]

  28. 2018年6月25日07:56 | #28

    best car insurance rates nationwide auto insurance car insurance prices [url=https://carinsurance18.us.com]car insurance[/url]

  29. 2018年6月25日14:20 | #29

    auto insurance quotes quotes auto insurance auto owners insurance claims [url=https://auto-insurance-quotes.us.com]auto insurance quotes comparison[/url]

  30. 2018年6月25日14:46 | #30

    difference between cialis professional and cialis super active
    buy cialis generic
    cialis 20 mg daily dose
    [url=http://cialisgrudj.com/]cialis generic[/url]
    cialis maximum dose

  31. 2018年7月5日01:37 | #31

    cialis pills online generic
    [url=http://cialisgenhrx.com/#]cialis online[/url]
    cialis pharmacy like
    buy cialis online

  32. 2018年7月5日14:52 | #32

    Click This Link loans online payday loans online [url=https://onlineloans.us.com]online payday loans[/url]

  33. 2018年7月5日16:30 | #33

    viagra kills man
    [url=http://viagragftrx.com/#]generic viagra[/url]
    getting viagra
    buy viagra online

  34. 2018年7月5日19:26 | #34

    essay writing service review spanish word for homework best essay writing services [url=https://essaywritingservices.us.com]professional essay writing service[/url]

  35. 2018年7月5日20:12 | #35

    Good day very nice web site!! Man .. Excellent
    .. Wonderful .. I will bookmark your site and take the
    feeds additionally? I’m satisfied to search out so many
    useful information here in the publish, we need work out
    extra techniques on this regard, thank you for sharing.
    . . . . .

  36. 2018年7月6日03:52 | #36

    auto insurance quotes comparison online cheap auto insurance in michigan cheap car insurance companies [url=https://cheapautoinsurance.us.org]cheap auto insurance quotes[/url]

  37. 2018年7月6日09:08 | #37

    cheap car insurance in alabama cheap auto insurance cheap auto insurance in california [url=https://cheapautoinsurance.us.org]cheap auto insurance quotes[/url]

  38. 2018年7月6日19:47 | #38

    lending payday loan personal loans poor credit [url=https://apaydayloan.us.com]payday loan[/url]

  39. 2018年7月6日20:12 | #39

    payday advance loan payday advances payday advance loan [url=https://paydayadvanceloan.us.com]payday advance loan[/url]

  40. 2018年7月15日00:04 | #40

    cheap kamagra 100mg tablets
    kamagra oral jelly
    kamagra gold 100mg reviews
    [url=https://www.kamagrajellyk.com/]buy kamagra oral jelly[/url]
    kamagra 100 chewable review

  41. 2018年7月15日02:50 | #41

    kamagra 100mg 7 tablets
    [url=https://www.kamagradax.com/]buy kamagra[/url]
    kamagra oral jelly 100mg suppliers australia
    buy kamagra 100mg
    the kamagra store scam

  42. 2018年7月18日15:09 | #42

    can i take double dose of cialis
    http://cialisle.com – cialis
    cialis atacand

  43. 2018年7月20日02:24 | #43

    play game slots online
    no deposit bonus codes netent
    duck poker no deposit bonus
    top online casinos europe
    666bet no deposit bonus

评论分页
1 ... 3 4 5 53
订阅评论
2+9= (必填)