[英]Wordpress custom header
I am currently using custom header image with randomize uploaded image option. 我目前使用带有随机上传图片选项的自定义标题图片。 It's working fine.
一切正常。 Every time I reload the page it header image changes to new one.
每次我重新加载页面时,标题图像都会更改为新图像。 Is there a way to change that images manually like setting a timer.
有没有办法像设置计时器那样手动更改图像。 I'm new to wordpress.
我是Wordpress的新手。 My current code is like this
我当前的代码是这样的
In functions.php 在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 );
And in header.php 并在header.php中
<header class="intro-header" style="background-image: url('<?php header_image(); ?>')">
Add multiple images on the custom theme page. 在自定义主题页面上添加多个图像。 Go to -> theme customize -> header images -> add images and save.
转到->主题自定义->标头图片->添加图片并保存。 Now check on your page it's working like slider.
现在检查您的页面,它是否像滑块一样工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.