alonepenq
V2EX  ›  WordPress

如何修改WP3.2默认主题twenty eleven顶部图片的高度?

  •  
  •   alonepenq · May 8, 2012 · 4790 views
    This topic created in 5295 days ago, the information mentioned may be changed or developed.
    twenty eleven主题的顶部图片规格是1000*288,我想改成1000*188,这个怎么改?求指导!
    5 replies  •  1970-01-01 08:00:00 +08:00
    Sivan
    Sivan
    May 8, 2012❤️1
    1
    function.php 搜 288,改成 188,然后后台重新上传图片。
    alonepenq
    alonepenq
    OP
    May 8, 2012
    2
    @Sivan 谢了。开始我一直在header里找。
    zern
    zern
    May 8, 2012❤️1
    3
    functions.php 123行

    define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyeleven_header_image_height', 288 ) );
    alonepenq
    alonepenq
    OP
    May 8, 2012
    4
    @sivan 再请教下,怎么给中间那块主体的边加上阴影,就像ifanr.com这种
    Sivan
    Sivan
    May 8, 2012❤️1
    5
    @alonepenq style.css 最后添加
    #page{box-shadow:0 0 8px #444;}
    颜色和范围自己调。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1358 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 70ms · UTC 17:11 · PVG 01:11 · LAX 09:11 · JFK 12:11
    ♥ Do have faith in what you're doing.