2011-10-14 2 views
0

사용자 정의 페이지 템플릿을 추가하여 특정 페이지에 대해 하나의 메뉴 만 표시하려고합니다. 논문에 사용자 정의 페이지 템플릿 추가하기

나는 논문 폴더에 템플릿 페이지를 생성하고 난 튜토리얼에서이 코드를 발견하지만이 템플릿으로 어떤 페이지를 열 때 페이지가 제대로 표시 나던이 줄을
<?php echo thesis_header(); ?> 
<?php echo thesis_nav_menu(); ?> 
    <div id="custom-page"> 
     <div class="content-column"> 
      <?php echo thesis_content(); ?> 
     </div> 
     <div class="sidebars"> 
      <?php echo thesis_sidebar_1(); ?> 
     </div> 
    </div> 
<?php echo thesis_footer_area(); ?> 

을 넣어. 모두 < 머리> </머리> 섹션이 없기 때문에. thesis_header() 함수는 HTML 페이지의 섹션을 가져 오지 않습니다.

내 질문; thesis_html_framework()처럼 섹션을 어떻게 추가 할 수 있습니까?

덕분에 ..

답변

0

나는 합리적인 방법을 찾을 수없는 내가 jQuery를 함께 구조를 수정하기로 결정했다. 하나의 메뉴 만 표시하는 사용자 정의 템플릿 파일입니다. 나는 완전한 해결책을 안다. 그러나 그것은 날을 저장했다.

<?php 
    /** 
    * Template Name: Custom - One Sidebar Template 
    * 
    * A custom template for use with Thesis theme for creating pages that add a left sidebar. 
    * DO NOT EDIT THIS FILE. Instead, use the thesis_hook_custom_template() hook in custom/places_template_functions.php 
    * 
    * @package Thesis 
    */ 
    add_action('thesis_hook_after_html', 'set_one_sidebar'); 

    thesis_html_framework(); 

    function set_one_sidebar(){ 
     ?> 
     <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> 
     <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> 
     <!-- 
     $(document).ready(function(){ 
      $('#sidebar_2').hide(); 
      $('#sidebars').css('width', '230px'); 
      $('#content').css('width', '718px'); 
      $('#content_box').css('background-position', '715px'); 
     }); 
     //--> 
     </SCRIPT> 
     <?php 
    } 
?> 
0

더 나은 해결책을 찾았습니까? 나는 논문 프레임 워크를 재구성하는 방법을 찾기 위해 하루 이틀을 보냈다. 그래서 한 페이지의 손으로 사이트의 너비를 조정할 수 있었다. 프레임 워크 함수를 호출 한 후 CSS를 무시하기 위해 (성공적으로) 시도한 후에 수정 프로그램을 사용하여 종료되었습니다. 신체의 끝 부분에 던져됩니다

thesis_html_framework(); 
<style> css stuff </style> 

, 아마 중 좋은 해결책 :

같은.

+1

좋은 해결책은 아닐지 모르지만 하루를 절약 해줍니다. 어떤 경우에는 최선을 다합니다. – dvdmn

관련 문제