2013-07-26 3 views
-2

나는 사용자 정의 헤더 지원을 위해 많은 자습서를 시도 워드 프레스하지만 난 지원을 추가 할 수 있어요하지만 난 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); 
?> 
+0

실제로 달성하려는 내용이 확실하지 않습니다. * 헤더 *를 수정하려고하지만 특정 내용을 수정하는 것으로 알고 있습니다. – Swordfish0321

+0

그래, 머리글을 잘 편집하려고 노력하고있어. CSS에서 헤더를 바꿀 수 있다는 것을 알았지 만, 내 테마에서 사용자에게이 기능을 제공하여 이미지를 업로드하여 헤더를 쉽게 바꿀 수있다. – user2233501

답변

0

입니다 CSS 스타일 시트를 편집하여 헤더 이미지를 쉽게 변경할 수 있습니까?

+0

나는 할 수있다. 그것을 변경하지만 내가 디자인 한 Wordpress 테마에서이 사용자 정의 헤더 변경 기능을 제공해야합니다 .... 그래서 이걸 도와주세요. – user2233501

+0

네, 당신의 필요를 이해했습니다. 따라서이 기능을 사용하여 간단한 WordPress 테마를 살펴보고 코드를 비교해 보시기 바랍니다. 이 페이지에서 도움을받을 수 있다고 생각하지 않습니다. – Farzad