2011-08-11 6 views
-1

실례합니다. 실례지만 웹 사이트를 처음 접했습니다. 내 사용자 지정 테마에서 사이드 바 및 바닥 글이 누락되었습니다. 머리글과 내용에는 배경 이미지를 표시 할 수 있지만 바닥 글과 세로 막대에는 표시 할 수 없습니다. 나는 여러 자습서를 따라 인터넷의 양쪽 끝을 연구했고 내가 뭘 잘못하고 있는지 알 수 없다.WordPress - 누락 된 사이드 바 및 바닥 글

머리글, 내용 및 오른쪽 세로 막대로 구성된 레이아웃을 만들려고합니다. 난 정말 WordPress의 사이드 바에 아무것도 원하지 않아. 나는 사이트 내비게이션을 설치하고 거기에 로그인 할 예정이지만, 배경을 표시하고 싶습니다! 아래에 기본 코드를 게시하고 내 사이트 here에 대한 링크를 제공합니다. 미리 감사드립니다!

의 index.php

<div id="container"> 
     <div id="content" role="main"> 

     <?php 
     /* Run the loop to output the posts. 
     * If you want to overload this in a child theme then include a file 
     * called loop-index.php and that will be used instead. 
     */ 
     get_template_part('loop', 'index'); 
     ?> 
     </div><!-- #content --> 
    </div><!-- #container --> 

<?php get_sidebar(); ?> 
<?php get_footer(); ?> 

header.php

<!DOCTYPE html> 
<html <?php language_attributes(); ?>> 
<head> 
<meta charset="<?php bloginfo('charset'); ?>" /> 
<title><?php 
/* 
* Print the <title> tag based on what is being viewed. 
*/ 
global $page, $paged; 

wp_title('|', true, 'right'); 

// Add the blog name. 
bloginfo('name'); 

// Add the blog description for the home/front page. 
$site_description = get_bloginfo('description', 'display'); 
if ($site_description && (is_home() || is_front_page())) 
    echo " | $site_description"; 

// Add a page number if necessary: 
if ($paged >= 2 || $page >= 2) 
    echo ' | ' . sprintf(__('Page %s', 'twentyten'), max($paged, $page)); 

?></title> 
<link rel="profile" href="http://gmpg.org/xfn/11" /> 
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url');?>" /> 
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> 
<?php 

if (is_singular() && get_option('thread_comments')) 
    wp_enqueue_script('comment-reply'); 

    wp_head(); 
?> 
</head> 

<body <?php body_class(); ?>> 
<div id="wrapper" class="hfeed"> 
<div id="header"> 
    <div id="masthead"> 
      ....... 
    </div><!-- #masthead --> 
</div><!-- #header --> 

<div id="main"> 

sidebar.php

,

footer.php

</div><!-- #main --> 

<div id="footer" role="contentinfo"> 

</div><!-- #footer --> 

</div><!-- #wrapper --> 

<?php wp_footer(); ?> 
</body> 
</html> 

있는 style.css는

/* 
Theme Name: Mod Theme 
Theme URI: http://www.itssimplydesign.com/wordpress/wp-content/themes/mod_theme/ 
Description: My First Theme 
Version: 1.0 
Author: Jason 
Author URl: http://www.itssimplydesign.com 
*/ 

/* =Layout 
-------------------------------------------------------------- */ 

/* 
LAYOUT: Header, Content and Sidebar 
DESCRIPTION: 
*/ 

body { 
background-color: #e6e9Df; 
} 

#container { 
float: left; 
margin: 0 -240px 0 0; 
width: 100%; 
} 

#header { 
background: url(http://www.itssimplydesign.com/wordpress/wp-content/themes/mod_theme/images/background_main_01.png) no-repeat; 
width: 1000px; 
height: 332px; 

} 

#sidebar { 
background: url(http://www.itssimplydesign.com/wordpress/wp-content/themes/mod_theme/images/background_main_03.png) no-repeat; 
float: right; 
clear: right; 
overflow: hidden; 
width: 300px; 
} 

#content { 
background: url(http://www.itssimplydesign.com/wordpress/wp-content/themes/mod_theme/images /background_main_02.png) no-repeat; 
min-height: 668px; 
width: 700px; 
float: left; 
} 

#footer { 
clear: both; 
width: 100%; 
} 
+0

요 밑에 아무 것도 코딩하지 않았습니다. 뭔가를 추가하고 그것을 첵하십시오. – Rikesh

+0

아주 좋은 지적입니다. 바닥 글이 작동합니다. 사이드 바가 주요 관심사입니다. 배경 이미지가 보이지 않는 이유는 무엇입니까? – atomSmasher

+0

같은 방식의 사이드 바리스도 작동합니다 .plz 확인하십시오 – Rikesh

답변

0

당신은 내용에 배경을 적용했지만 아무것도 바닥 글이 없습니다.

당신은 당신의 CSS에서 바닥 글의 스타일을 변경할 수 있습니다, 또는 당신이 너무 #container에

<div id="footer" role="contentinfo"> 

</div> 

를 넣을 수 있습니다. 그런 다음 모두 같은 div에 포함되며 배경도 적용됩니다.

마찬가지로, 컨테이너에만 사이드 바를 포함 할 수 있습니다.

+0

죄송합니다. 더 잘 설명해야합니다. 세 가지 배경 파일이 있습니다. 바닥 글에는 실제로 배경 파일이 없습니다. 내가 지금 가지고있는 파일은 맨 위에 표시되는 머리글입니다. 왼쪽에 표시되는 내용을위한 것. 그리고 사이드 바가되어야하는 3 분의 1이 있습니다. 그것은 머리글의 회색 스트립과 내용의 오른쪽에 나타나야합니다 (SHOULD). 그것은 페이지 정보의 미디어 아래에 나타나지만 페이지에는 나타나지 않습니다. – atomSmasher

+0

당신은 정확합니다. 내 스타일에 더 많은 관심을 기울일 필요가있었습니다. 저를 올바른 방향으로 가리켜 주셔서 감사합니다. – atomSmasher

관련 문제