菜单的样式和页脚也不正确

时间:2014-09-09 作者:Rohil_PHPBeginner

enter image description here

在这里,我想删除菜单前的项目符号。

以下是我的wordpress菜单代码:

<ul class="templatemo_menu">
    <li>
        <?php wp_nav_menu( array( \'theme_location\' => \'header\' ) ); ?>
    </li>
</ul>
这是我的CSS:

.templatemo_menu {
list-style-type: none;
margin: 10px;
margin-top: 0px;
padding: 0px;
width: 195px;
}
.templatemo_menu li a{
    background: #F4F4F4 url(images/button_default.gif) no-repeat;
    font-size: 13px;
    font-weight: bold;
    color: #0066CC;
    display: block;
    width: auto;
    margin-bottom: 2px;
    padding: 5px;
    padding-left: 12px;
    text-decoration: none;
  }
 * html .templatemo_menu li a{ 
      width: 190px;
  }
  .templatemo_menu li a:visited, .templatemo_menu li a:active{
      color: #0066CC;
  }
  .templatemo_menu li a:hover{
      background: #EEEEEE url(images/button_active.gif) no-repeat;
      color: #FF3333;
  }
索引。php:

 <?php get_header(); ?>
<div id="templatemo_left_column">
    <div class="text_area" align="justify">
        <div class="title">
            Free CSS Website Layout
        </div>

        This   free CSS  template is provided by <a href="#" target="_parent">xyz.com</a>. Feel free to download, modify and use this layout for your websites. It would be helpful if you put a kind of credit link back to <a href="http://www.xyz.com" target="_parent">xyz.com</a> website. Thank you.<br />

        <br />

        Proin vel libero id erat venenatis accumsan. Nunc blandit orci sit amet risus. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque dolor nulla, congue vitae, fringilla in, varius a, orci. Mauris convallis. <br />

        <br />
        <?php if ( have_posts() ) { while ( have_posts() ) { ?>
            <div class="section_box2" align="justify">
                <div class="post_title">
                    <a href="<?php the_permalink() ?>" rel="bookmark" title=""><?php the_title(); ?></a>
                </div>
                <div class="text_area">
                    <?php the_post(); the_content();?>
                        <div class="publish_date">Post Date: <?php the_time(\'F jS, Y\');?> By <?php the_author_posts_link(); ?><?php _e( \' Posted in\' ); ?> <?php the_category( \', \' ); ?>· Tags: <a href="#">CSS</a> · <a href="#">Web Design</a> · <a href="#">Full Story</a>
                        </div>
                </div>
            </div>
        <?php }  } // end if ?>

        <div class="section_box2" align="justify">
            <div class="post_title">
                New Flash Player
            </div>
            <div class="text_area">
                <img src="images/s_flashmo_022_park_20.jpg" alt="Photo Two" title="Photo Two" width="120" height="90" class="templatemo_pic" />
                Nam sit amet justo vel libero tincidunt dignissim. Fusce ac orci sit amet velit ultrices condimentum. Integer imperdiet  odio ac eros. Ut id massa. Nullam nunc. Vivamus sagittis varius lorem.
                Quisque in diam a justo condimentum molestie.<br />
                <div class="publish_date">Post Date: 24-10-2020 · Tags: <a href="#">Flash</a> · <a href="#">ActionScripts</a> · <a href="#">Full Story</a>
                </div>
            </div>
        </div>

    </div>
</div>
<?php get_sidebar();get_footer();   ?>
标题。php:

<!DOCTYPE html>
<html>
<head>
<title><?php wp_title(\'|\', true, \'right\'); ?></title>
<link href="<?php bloginfo(\'stylesheet_url\');?>" rel="stylesheet" type="text/css" />
<?php wp_head(); ?>
</head>
<body>
<div id="templatemo_container_wrapper">
    <div class="templatemo_spacer"></div>
    <div id="templatemo_container">
         <div id="templatemo_top"> <a href="#" target="_parent">Website Templates</a> · <a href="#" target="_parent">Flash Templates</a> · <a href="#">Company</a> · <a href="#">Contact</a></div>
    <div id="templatemo_header">
        <div id="inner_header">
           <div id="templatemo_site_title"><?php bloginfo(\'name\'); ?></div>
           <div id="templatemo_site_slogan"><?php bloginfo(\'description\'); ?></div>
        </div>
    </div>
侧栏。php:

<div id="templatemo_right_column">
    <ul class="templatemo_menu">
        <li>
            <?php wp_nav_menu( array( \'theme_location\' => \'header\' ) ); ?>
        </li>
    </ul>
    <div class="section_box" align="justify">
        <div class="subtitle">
            Quick Contact
        </div>
            Tel: 002-040-0240<br />
            Fax: 001-050-0480<br />
            Email: info[at]templatemo.com<br />
            <br />
    </div>
    <div class="section_box" align="justify">
        <div class="subtitle">
            About this website
        </div>
        Curabitur velit tellus, placerat et, dapibus varius,  aliquet quis, purus. Lorem ipsum dolor sit amet, consectetuer  adipiscing elit.<br />
        <a href="http://validator.w3.org/check?uri=referer"><img  src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" width="88" height="31" vspace="8" border="0" /></a> 
    </div>
    <div class="section_box">
        <div class="subtitle">
        Special Thanks
        </div>
        <a href="#">Website Link One</a><br />
        <a href="#">Blog Link Two</a><br />
        <a href="#">Template Link Three</a><br />
        <a href="#">Text Link Four</a><br />
        <a href="http://www.templatemo.com" target="_parent">Free Templates</a><br />
</div>
<div class="section_box"><?php dynamic_sidebar(\'Right Hand Sidebar\'); ?></div>
这是我的页脚。php代码:

<div id="templatemo_footer">
    Copyright © 2048 Your Company Name · <a href="#" target="_parent">Website Templates</a> by <a href="#" target="_blank">xyz.com</a>
</div>
<?php wp_footer(); ?> 
</div>
<div class="templatemo_spacer"></div>
</div>
</html>
屏幕截图:

enter image description here

1 个回复
最合适的回答,由SO网友:Robert hue 整理而成

同时添加此项。

.templatemo_menu li {
    list-style: none;
}
这将删除项目符号。

结束

相关推荐

未为文件加载子主题中的样式,而不是.css

我已经建立了一个多站点和多语言的Worpress页面,以支持英语和德语。目前只处理英文版本。我使用WooThemes的“定义”主题,并设置了一个子主题(如下所示this manual) 根据我的需要定制设计。基本上,这很好,但有一些例外。我创建了子主题目录,采用了示例样式。css满足我的需要(包括../definition/style.css、主题名称、模板)。只要我覆盖样式中定义的css定义。css,一切都很好。父主题还定义了其他文件中的样式(例如,themes/definition/css/layou