실례합니다. 실례지만 웹 사이트를 처음 접했습니다. 내 사용자 지정 테마에서 사이드 바 및 바닥 글이 누락되었습니다. 머리글과 내용에는 배경 이미지를 표시 할 수 있지만 바닥 글과 세로 막대에는 표시 할 수 없습니다. 나는 여러 자습서를 따라 인터넷의 양쪽 끝을 연구했고 내가 뭘 잘못하고 있는지 알 수 없다.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%;
}
요 밑에 아무 것도 코딩하지 않았습니다. 뭔가를 추가하고 그것을 첵하십시오. – Rikesh
아주 좋은 지적입니다. 바닥 글이 작동합니다. 사이드 바가 주요 관심사입니다. 배경 이미지가 보이지 않는 이유는 무엇입니까? – atomSmasher
같은 방식의 사이드 바리스도 작동합니다 .plz 확인하십시오 – Rikesh