나는 사용자 정의 헤더 지원을 위해 많은 자습서를 시도 워드 프레스하지만 난 지원을 추가 할 수 있어요하지만 난 header..Down 여기 여기 사용자 정의 헤더 지원
<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 -->
Index.php는
입니다 변경할 수 없습니다입니다 여기#header{
background-color:#c1d9c5;
color:#405952;
padding:55px;
}
#header h1{
margin:0;
font-size:72px;
font-weight:normal;
}
내 CSS는 당신이 때 사용자 정의 헤더를 사용하려고 왜 내 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);
?>
실제로 달성하려는 내용이 확실하지 않습니다. * 헤더 *를 수정하려고하지만 특정 내용을 수정하는 것으로 알고 있습니다. – Swordfish0321
그래, 머리글을 잘 편집하려고 노력하고있어. CSS에서 헤더를 바꿀 수 있다는 것을 알았지 만, 내 테마에서 사용자에게이 기능을 제공하여 이미지를 업로드하여 헤더를 쉽게 바꿀 수있다. – user2233501