2010-08-15 1 views
0

내가, 워드 프레스 테마에 새로 온 사람과 starkers워드 프레스 (3) - functions.php이 워드 프레스 3.0 새로운 twentyten에 따라 업데이트 된 테마로

내 질문은에서 슈타 커의 WP 테마를 다운로드 한 쿼리, I을 functions.php 파일에 모든 코드가 필요하므로 기본 20 번째 테마를 참조하는 것처럼 보입니까?

나는이 function.php 파일에 필요한 중요한 코드가 있는지 궁금해서 CMS를 사용하고 있습니까?

감사합니다.

답변

1

그것은 당신이 당신의 주제에 어떤 것을 포함시킬 것인지에 달려 있습니다. 당신이 원하지 않는 한 그 모든 것을 필요로하지는 않습니다.

당신이 필요로하는 최소 여기에, 사이드 바의 통합을위한 예입니다

if (function_exists('register_sidebar')) 
    register_sidebar(array(
     'before_widget' => '<div class="side">', 
     'after_widget' => '</div></div>', 
     'before_title' => '<div class="sidebar_title">', 
     'after_title' => '</div><div class="side_content">', 
)); 

당신이 전이나 사이드 후에 와야한다 무엇을 할당 할 때 일반적으로 도움이됩니다.

<?php 
if (function_exists('register_sidebar')) 
    register_sidebar(array(
     'before_widget' => '<div class="side">', 
     'after_widget' => '</div></div>', 
     'before_title' => '<div class="sidebar_title">', 
     'after_title' => '</div><div class="side_content">', 
    )); 


// add thumbnail support to theme, options will be automatically visible in admin 
if (function_exists('add_theme_support')) add_theme_support('post-thumbnails'); 

?> 
+0

감사 Sarfraz :

예를 들어, 내 functions.php 파일에 존재하는 모든 무엇 여기 슈타 커의 테마를 사용하여 테마를 생성합니다. 가능한 경우 WordPress 테마에 익숙하지 않아서 궁금한 점이 있습니다. 제 첫 번째 주제를 풀기 위해 검색어로 직접 이메일을 보낼 수 있다면 좋을까요? 괜찮 으면 웹 사이트에서 연락을드립니다. 감사. – tonyf