【问题标题】:I make changes in wordpress but nothing changes我在 wordpress 中进行了更改,但没有任何更改
【发布时间】:2012-09-17 06:58:53
【问题描述】:

我正在使用 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;
}

【问题讨论】:

  • 如果我们可以看到有问题的代码/网站,我们可以告诉您可能发生的情况。如果没有这些重要的难题,我们所说的任何东西都只是猜测。你试过ctrl+F5吗?
  • 您的意思是,您使用的是子主题??我不知道通过完全绕过主题系统来为 WP 设置主题的方法?
  • @kyle :代码无关紧要。问题是,有时当我使用

    等 html 标签通过 wordpress 的仪表板进行更改时,什么也没有发生。
  • @Ravneet'Abid' 代码确实很重要。如果你去找机械师,告诉他当你转动钥匙时发动机不启动,你会告诉他“汽车没关系”吗?也许您的选择器错误,也许存在缓存问题。我们不知道也无法找出问题的模糊描述没有看到一些代码!
  • @kyle :好的,我要添加代码。

标签: html css wordpress


【解决方案1】:

你有安装缓存插件吗?我有同样的问题,我的网站不会更新。后来我发现这是一个 WP SuperCache 插件问题。

【讨论】:

  • 如何识别插件或文件?
  • 点击“插件”并检查WP Super Cache是​​否在列表中。
猜你喜欢
相关资源
最近更新 更多
热门标签