【发布时间】:2015-02-18 12:35:17
【问题描述】:
我目前正在使用带有随机上传图片选项的自定义标题图片。它工作正常。每次我重新加载页面时,它的标题图像都会更改为新的。有没有办法像设置计时器一样手动更改图像。我是wordpress的新手。我现在的代码是这样的
在functions.php中
$args = array(
'width' => 1856,
'height' => 448,
'default-image' => 'http://wordpress/wp-content/uploads/2015/02/mbuntu-11.jpg',
'uploads' => true,);
add_theme_support( 'custom-header', $args );
在 header.php 中
<header class="intro-header" style="background-image: url('<?php header_image(); ?>')">
【问题讨论】:
标签: php wordpress wordpress-theming