我在wordpress中进行了更改,但没有任何变化

时间:2012-09-17 06:58:53

标签: html css wordpress

我正在使用wordpress开发网站。

我使用自己的html模板而不是wordpress主题,它也有css文件。

当我尝试通过wordpress仪表板对其进行一些html更改时,它不会改变。

为什么不发生?

wordpress有时不支持html标签吗?

或者是我使用的html标签,与css冲突?

索引页面的代码就在这里。

<?php get_header(); ?>

<div id="content">
<div id="inner_content">
<?php if ( is_front_page() ) { ?>
<div id="content_top">
<div id="business_strategy">

<div id="heading_outer">
<p class="main_heading">Business</p>
<p class="main_heading1">Strategy</p>
</div><!---heading_outer--->

<div id="business_image"><img src="<?php bloginfo('template_url'); ?>/images/inner_image.gif" alt="image" /></div><!---business_image--->

<div id="des">
<p>Owing to its competitive stand in the world India has moved rapidly. There is ample reason...</p>
<span class="read_more"><a href="?page_id=56">Read More</a></span></div><!---des--->
</div><!---business_strategy--->


<div id="business_planning">
<div id="heading_outer">
<p class="main_heading">Business</p>
<p class="main_heading1">Planning</p>
</div><!---heading_outer--->

<div id="business_image"><img src="<?php bloginfo('template_url'); ?>/images/inner_image.gif" alt="image" /></div><!---business_image--->

<div id="des">
<p>Owing to its competitive stand in the world India has moved rapidly. There is ample reason...</p>
<span class="read_more"><a href="?page_id=81">Read More</a></span></div><!---des--->
</div><!---business_planning--->


<div id="business_planning">
<div id="heading_outer">
<p class="main_heading">Business</p>
<p class="main_heading1">Result</p>
</div><!---heading_outer--->

<div id="business_image"><img src="<?php bloginfo('template_url'); ?>/images/inner_image.gif" alt="image" /></div><!---business_image--->

<div id="des">
<p>Owing to its competitive stand in the world India has moved rapidly. There is ample reason...</p>
<span class="read_more"><a href="?page_id=85">Read More</a></span></div><!---des--->
</div><!---business_planning--->

</div><!---content_top--->
<?php } ?>
<div id="content_bottom">

<div id="content_bottom_left">
<div id="content_bottom_intro">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>

<?php if ( is_front_page() ) { ?>
<h3 class="content_heading">Who We Are?</h3>
<?php } else { ?>
<h3 class="content_heading"><?php the_title(); ?></h3>
<?php } ?>
<?php the_content(); ?>
<?php endwhile; /* rewind or continue if all posts have been fetched */ ?>
<?php else : ?>

<?php endif; ?>
</div><!---content_bottom_intro--->
<?php if ( is_front_page() ) { ?>
<span class="line_bg"><img src="<?php bloginfo('template_url'); ?>/images/line_bg.gif" alt="image" /></span>

<div id="partners">
<h3>Clients</h3>
<div id="partners_logo"><img src="<?php bloginfo('template_url'); ?>/images/logos.gif" alt="image" style="margin-top:10px;" /></div>
<!---partners_logo--->
</div><!---channel_partners--->
<?php } ?>
</div><!---content_bottom_left--->
<?php get_sidebar(); ?>
</div><!---content_bottom--->
</div><!---inner_content--->
</div><!---content--->

<?php get_footer(); ?>

和css在这里。

/*
Theme Name: Business_template
Author: Ravneet Singh
*/





@charset "utf-8";

body{
width:100%;
margin:0px;
padding:0px;
background-color:#2e6a92;
}

#main_outer{
width:100%;
float:left;
margin:auto;
}

#inner_outer{
width:900px;
float:none;
margin:auto;
background-color:#FFFFFF;
}

#menu{
background-image:url(images/menu_bg.gif);
background-repeat:no-repeat;
width:900px;
height:114px;
float:left;
margin:auto;
}

#menu ul{
margin-left:75px;
margin-top:-12px;
margin-bottom:10px;
padding:0;
list-style:none;
}

#menu ul li{
list-style:none;
float:left;
}

#menu ul li a{
width:135px;
height:23px;
font-size:18px;
display:block;
color:#ffffff;
padding-top: 25px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
text-align:right;
text-decoration:none;
}

#menu ul li a:hover{
text-decoration:underline;
}

#header{
width:900px;
height:203px;
float:left;
margin:auto;
background-image:url(images/header_bg.gif);
background-repeat:repeat-x;
}

#logo{
width:500px;
height:195px;
float:left;
margin:auto;
}

#header_image{
width:400px;
height:195px;
float:right;
margin:auto;
}

#content{
width:900px;
float:left;
margin:auto;
background-color:#FFFFFF
}

#inner_content{
width:890px;
float:left;
margin-left:10px;
margin-right:10px;
}

#content_top{
width:880px;
float:left;
margin:auto;
}

#business_strategy{
width:290px;
height:173px;
float:left;
margin:auto;
background-color:#d7d4c5;
}

#heading_outer{
width:136px;
height:100px;
float:left;
margin:auto;
}

.main_heading{
color:#740a07;
font-size:22px;
font-weight:bold;
padding-left:15px;
}

.main_heading1{
color:#740a07;
font-size:22px;
font-weight:bold;
padding-left:25px;
margin-top:-18px;
}

#business_image{
width:154px;
height:100px;
float:right;
margin:auto;
}

#des{
width:290px;
height:73px;
float:left;
margin:auto;
}

#des p{
color:#4b4d4f;
font-size:15px;
font-weight:bold;
text-align:justify;
padding-left:10px;
padding-right:10px;
margin-top:4px;
}

.read_more a{
color:#740a07;
font-size:15px;
text-decoration:none;
float:right;
margin-top:-20px;
font-weight:bold;
padding-right:10px;
}

.read_more a:hover{
text-decoration:underline;
}

#business_planning{
width:290px;
height:173px;
float:left;
margin-left:5px;
background-color:#d7d4c5;
}

#content_bottom{
width:880px;
float:left;
margin-bottom:15px;
}

#content_bottom_left{
width:600px;
float:left;
margin:auto;
}

#content_bottom_intro{
width:600px;
float:left;
margin:auto;
}

.content_heading{
background-image:url(images/heading_bg.gif);
background-repeat:no-repeat;
width:202px;
height:36px;
color:#FFFFFF;
padding-left:15px;
padding-top:5px;
}

#content_bottom_intro p{
font-size:15px;
text-align:justify;
margin-top:-10px;
}

#partners{
width:600px;
float:left;
margin:auto;
}

#partners h3{
color:#4d4c49;
font-size:22px;
}

#partners_logo{
width:600px;
height:150px;
float:left;
margin-top:-10px;
border:1px #666666 solid;
}

#content_bottom_right{
width:260px;
float:right;
margin:auto;
}

#right_content{
width:260px;
float:right;
margin:auto;
}

#right_content_detail{
width:255px;
height:162px;
float:left;
margin-top:-10px;
border:1px #666666 solid;
}

#right_content_detail h4{
padding-left:10px;
color:#363430;
margin-top:5px;
}

.post{
color:#000;
text-decoration:none;
margin-left:10px;
}

#right_content_detail p{
margin-top:-12px;
padding-left:5px;
padding-right:5px;
color:#363430;
font-size:14px;
text-align:justify;
}

#right_content_detail ul{
margin:0px;
padding:0px;
}

#right_content_detail ul li{
float:left;
display:block;v
}

#right_content_detail ul li a{
font-size:17px;
margin-top:5px;
text-decoration:none;
display:block;
color:#363430;
width:200px;
padding-left:10px;
margin-top:8px;
}

#right_content_detail ul li a:hover{
text-decoration:underline;
}

.read_more_link a{
color:#740a07;
font-size:15px;
text-decoration:none;
float:right;
font-weight:bold;
padding-right:10px;
padding-top:5px;
}

.read_more_link a:hover{
text-decoration:underline;
}

.line_bg{
width:600px;
float:left;
margin-top:10px;
}

#footer_bg{
width:900px;
float:left;
margin:auto;
background-color:#2e6a92;
}

#footer{
width:880px;
height:74px;
float:none;
margin:auto;
}

#footer_menu{
width:630px;
height:74px;
float:left;
margin:auto;
}

#footer_menu ul{
margin:0;
padding:0;
list-style:none;
}

#footer_menu ul li{
list-style:none;
float:left;
}

#footer_menu ul li a{
width:100px;
height:23px;
font-size:18px;
display:block;
color:#ffffff;
padding-top: 25px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
text-align:left;
text-decoration:none;
}

#footer_menu ul li a:hover{
text-decoration:underline;
}


#footer_link{
width:250px;
height:74px;
float:right;
margin:auto;
}

.footer_table{ 
float:right; 
border:none;
margin-top:45px;
}

.footer_td{
color:#FFFFFF;
font-size:16px;
}

.link a{
color:#FFFFFF;
text-decoration:none;
}

.link a:hover{
text-decoration:underline;
}

1 个答案:

答案 0 :(得分:0)

您是否安装了任何缓存插件?我有同样的问题,我的网站不会更新。我后来发现它是一个WP SuperCache插件问题。