[英]Wordpress custom header
我目前使用带有随机上传图片选项的自定义标题图片。 一切正常。 每次我重新加载页面时,标题图像都会更改为新图像。 有没有办法像设置计时器那样手动更改图像。 我是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(); ?>')">
在自定义主题页面上添加多个图像。 转到->主题自定义->标头图片->添加图片并保存。 现在检查您的页面,它是否像滑块一样工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.