100元,请人帮忙改个小地方[已经解决]
刚刚装好的模板,演示:[url=http://www.softadd.cn/]www.softadd.cn[/url] 【请注意下面有一片空白】这套模板,默认的是有12个分类,可我怎么也用不了这么多,所以想改成8个分类
但是改了之后,下面有一大片空白,我该怎么办呢?
因不懂html代码,所以来此求助,希望能有热心人相助,谢谢
index.php 代码复制如下:
<?php get_header(); ?>
<div id="page" class="clearfloat">
<div id="center">
<div class="col">
<div id="newest" class="fr">
<h2><?php bloginfo('name'); ?>最新文章推荐</h2><ul>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>" target="_blank"><?php the_title(); ?></a> (<?php the_time('m-d') ?>)</li>
<?php endwhile; ?>
</ul></div>
<?php include (TEMPLATEPATH . '/slider.php'); ?>
</div><!--END COL-->
<div class="col">
<div class="col1">
<?php $display_categories = array(1,4); foreach ($display_categories as $category) { ?>
<div class="catlist"><?php query_posts("showposts=5&cat=$category"); $wp_query->is_category = false; $wp_query->is_archive = false; $wp_query->is_home = true; ?>
<h3><a href="<?php echo get_category_link($category);?>" target="_blank"><?php single_cat_title(); ?></a><span><a href="<?php echo get_category_link($category);?>" target="_blank">更多>></a></span></h3><ul>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" target="_blank"><?php the_title(); ?></a></li>
<?php endwhile; ?><?php else : ?><br /> 此分类暂无内容
<?php endif; ?></ul></div><?php } ?>
</div><!--END COL LEFT-->
<div class="col2">
<?php $display_categories = array(3,5); foreach ($display_categories as $category) { ?>
<div class="catlist"><?php query_posts("showposts=5&cat=$category"); $wp_query->is_category = false; $wp_query->is_archive = false; $wp_query->is_home = true; ?>
<h3><a href="<?php echo get_category_link($category);?>" target="_blank"><?php single_cat_title(); ?></a><span><a href="<?php echo get_category_link($category);?>" target="_blank">更多>></a></span></h3><ul>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" target="_blank"><?php the_title(); ?></a></li>
<?php endwhile; ?><?php else : ?><br /> 此分类暂无内容
<?php endif; ?></ul></div><?php } ?>
</div><!--END COL RIGHT-->
</div><!--END COL-->
<div class="col">
<div class="col1">
<div class="banner"><?php include (TEMPLATEPATH . '/ads300x60x1.php'); ?></div>
<?php $display_categories = array(6,7); foreach ($display_categories as $category) { ?>
<div class="catlist"><?php query_posts("showposts=5&cat=$category"); $wp_query->is_category = false; $wp_query->is_archive = false; $wp_query->is_home = true; ?>
<h3><a href="<?php echo get_category_link($category);?>" target="_blank"><?php single_cat_title(); ?></a><span><a href="<?php echo get_category_link($category);?>" target="_blank">更多>></a></span></h3><ul>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" target="_blank"><?php the_title(); ?></a></li>
<?php endwhile; ?><?php else : ?><br /> 此分类暂无内容
<?php endif; ?></ul></div><?php } ?>
</div><!--END COL LEFT-->
<div class="col2">
<div class="banner"><?php include (TEMPLATEPATH . '/ads300x60x2.php'); ?></div>
<?php $display_categories = array(9,8); foreach ($display_categories as $category) { ?>
<div class="catlist"><?php query_posts("showposts=5&cat=$category"); $wp_query->is_category = false; $wp_query->is_archive = false; $wp_query->is_home = true; ?>
<h3><a href="<?php echo get_category_link($category);?>" target="_blank"><?php single_cat_title(); ?></a><span><a href="<?php echo get_category_link($category);?>" target="_blank">更多>></a></span></h3><ul>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" target="_blank"><?php the_title(); ?></a></li>
<?php endwhile; ?><?php else : ?><br /> 此分类暂无内容
<?php endif; ?></ul></div><?php } ?>
</div><!--END COL RIGHT-->
</div><!--END COL-->
<div class="col2">
<div class="banner"><?php include (TEMPLATEPATH . '/ads300x60x3.php'); ?></div>
</div><!--END COL-->
<div class="col2">
<div class="banner"><?php include (TEMPLATEPATH . '/ads300x60x4.php'); ?></div>
</div><!--END COL-->
</div><!--END CENTER-->
<div id="left"><!--左侧开始-->
<?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
</div><!--左侧结束-->
<div id="right"><!--右侧开始-->
<?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
</div><!--右侧结束-->
</div><!--END PAGE-->
<?php get_footer(); ?>
[[i] 本帖最后由 阿里妈咪 于 2008-11-11 16:06 编辑 [/i]] 好像挺好的嘛``
再说你贴index.php文件出来好像用处不大哦```
呵呵``个人意见,等待高手来解决`` 我对这个基本是一窍不通啊,用dw瞎改
我虽然删除了4个分类,但下面还是留着那4个分类的地方,所以就有一片空白 楼主的皮是在哪下载的呀。 :L google到处都是啊
怎么没人帮忙呢 用DW删 [quote]原帖由 [i]baihua[/i] 于 2008-11-11 14:23 发表 [url=http://wordpress.org.cn/redirect.php?goto=findpost&pid=141611&ptid=24079][img]http://wordpress.org.cn/images/common/back.gif[/img][/url]
用DW删 [/quote]
默认是12个分类。我已经用dw删除了4个
虽然删除了,但是那4个分类所占的地方还留着哪,所以最下面是一大片空白嘛 后台PM给我把,我给你看看 我不要你钱,免费给你弄好. take it easy 已经PM给你了,请帮忙看看,看了你的博客,你活的真丰富啊
[[i] 本帖最后由 阿里妈咪 于 2008-11-11 15:03 编辑 [/i]]
回复 9# 的帖子
好人啊:handshake :handshake 还可以的CMS主题哦。。。 WP的论坛,还是有些热心的朋友,肯帮助别人的 你主题是不是后台设置的那种、
如果不是的话,你可以把header。php文件和css文件传来看看··· header.php的代码 复制如下
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php if(is_home()) {echo "【"; bloginfo('name'); echo "】"; bloginfo('description');} else {wp_title(' -',true,'right'); echo "【"; bloginfo('name'); echo "】";} ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if (is_single()){
$description = $post->post_title . ", " . $post->post_excerpt ;
$tags = wp_get_post_tags($post->ID);
foreach ($tags as $tag ){
$keywords = $keywords . $tag->name .", ";}
} else {
$description = get_bloginfo('name') . ", " . get_bloginfo('description');
} $keywords = $keywords . get_bloginfo('name') ;
?>
<meta name="description" content="<?=$description?>" />
<meta name="keywords" content="<?=$keywords?>" />
<?php wp_head(); ?>
</head><body>
<div id="mininav" class="ar clearfloat"></script><script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/language.js"></script></div>
<div id="header" class="clearfloat"><div id="header_l">
<div id="logo" class="fl"><a href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('name'); ?>"><img src="<?php bloginfo('template_directory'); ?>/image/logo.png" alt="<?php bloginfo('name'); ?>" /></a></div>
<div id="siteinfo">
<div id="sitename" style="letter-spacing:5px"><h1><a href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1></div>
<div id="sitedesc" style="letter-spacing:1px"><?php bloginfo('description'); ?></div>
</div></div><div id="header_r">
<a href="javascript:window.external.AddFavorite('<?php echo get_option('home'); ?>', '<?php bloginfo('name'); ?>')">收藏本站</a> |
<a href="#" onclick="this.style.behavior='url(#default#homepage)';this.sethomepage('<?php echo get_option('home'); ?>');return false;">设为首页</a><br />
<!-- 此处请修改或删除 --><a href="#" target="_blank">邮件订阅</a> | <a href="<?php bloginfo('rss2_url'); ?>" target="_blank">Rss订阅</a>
</div></div>
<div class="nav avt clearfloat">
<li<?php if ( is_home() ) { ?> class="on"<?php } ?>><a href="<?php echo get_option('home'); ?>/">首页</a></li>
<?php wp_list_categories('orderby=id&hide_empty=0&title_li='); ?>
</div> 这个模板做的真是相当的烂呀,别着急,我给你慢慢改... 他的问题是php语法有误 恩,好的,我后台选用的是中间那个theme,不是最左边那个,呵呵 刚领导叫去开会儿了,你看看搞好美 已经搞好了,谢谢你
页:
[1]