我正在使用创作框架,我想支持我的孩子主题中的标题图像。我想改变我上传的图像的位置作为标题图像。Genesis框架 - 如何更改自定义标题CSS代码?
我加入这行代码我的functions.php中:
add_theme_support('genesis-custom-header', array('width' => 213, 'height' => 300));
创现在可以生成CSS代码为.site头头版内:
.site-header { background: url(http://localhost:8888/studio/wp-content/uploads/2014/09/my_logo.png) no-repeat !important; }
我想改变此代码,因为我想申请一些其他CSS的东西到我的<header>
像background-position
,background-size
等我在官方文档中看到,我可以在add_theme_support中使用'header-callback'
,但它是如何工作的?我如何编写我的回调函数WP自动更改上面为.site-header
生成的代码?
如果我在我的style.css
文件中更改.site-header
,它不会改变任何内容。它必须如上生成,但是如何?
谢谢!