Css 自定义标题支持wordpress

Css 自定义标题支持wordpress,css,wordpress,Css,Wordpress,我已经尝试了很多关于自定义标题支持的教程,但是我能够添加这些支持,但是我无法更改标题。下面是Index.php <div id="page"> <div id="header"><h1>Super Plain</h1></div> <div id="nav"> <ul> <?php wp_list_pages('title_li=');?>

我已经尝试了很多关于自定义标题支持的教程,但是我能够添加这些支持,但是我无法更改标题。下面是Index.php

<div id="page">
    <div id="header"><h1>Super Plain</h1></div>
    <div id="nav">
        <ul>
            <?php wp_list_pages('title_li=');?>
        </ul>
    </div>

    <div id="main">
        <div id="content">
              <?php if(have_posts()): while(have_posts()): the_post(); ?>
                <h1><?php the_title(); ?></h1>
                <?php the_content(); ?>
              <?php endwhile; endif; ?>
        </div><!--/ #content -->

        <div id="sidebar">
            <h2>News</h2>
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse ornare sodales porta. Mauris laoreet tempor luctus. Nunc consequat </p>        
        </div><!--/ #sidebar -->  
    </div><!--/ #main -->

</div><!--/ #page -->
这是我的function.php文件

<?php
$args = array(
    'width'         => 980,`enter code here`
    'height'        => 60,
    'default-image' => get_template_directory_uri() . '/images/header.jpg',
);
add_theme_support( 'custom-header', $args );
?>

当您可以通过编辑CSS样式表轻松更改标题图像时,为什么要尝试启用自定义标题?

目前还不清楚您实际想要实现什么。我知道您正试图对标题进行编辑,但是什么具体的编辑?是的,我正在尝试对标题进行编辑,我知道我可以从css中更改标题,但我想在我的主题中向用户提供此功能,这样用户只需上传图像就可以轻松更改标题。我知道我可以更改标题,但我需要在我拥有的wordpress主题中提供此自定义标题更改功能设计…所以请帮我解决这个问题。是的,我理解你的需要。所以我建议你看看一个简单的wordpress主题和这个功能,并将你的代码与之进行比较。我认为你在这一页上找不到帮助。
<?php
$args = array(
    'width'         => 980,`enter code here`
    'height'        => 60,
    'default-image' => get_template_directory_uri() . '/images/header.jpg',
);
add_theme_support( 'custom-header', $args );
?>