在我的网页上,目前的博客帖子都有白色的文本,这就是我想要的。当我点击一个帖子从主站点到特定的博客帖子时,标题颜色和链接颜色都会发生变化(参见链接)。我的网站是现场的,需要帮助找出这是否可以修复。
我如何解决这个问题,使它们保持白色,就像在主博客滚动页…上一样。
示例:
主营: www.trinitybeats.com
具体发布:http://www.trinitybeats.com/archie-horizon-original-mix/ (注意标题颜色和链接颜色)
这里是特定于博客格式的代码:
<div class="hentry-inner">
<div class="entry-wrapper grids">
<?php get_template_part('content', 'meta'); ?>
<div class="entry-content grid-10 clearfix">
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'stag'), get_the_title()); ?>"> <?php the_title(); ?></a></h2>
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail();
}
the_content(__('Continue Reading', 'stag'));
wp_link_pages(array('before' => '<p><strong>'.__('Pages:', 'stag').'</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
$embed = get_post_meta(get_the_ID(), '_stag_audio_embed', true);
if(!empty($embed)){
echo do_shortcode(htmlspecialchars_decode($embed));
}else{
stag_audio_player(get_the_ID());
}
?>
</div>
<span class="bottom-accent"></span>
</div>
,在这段代码中有什么我可以修复的,当进入特定的博客页面时,字体颜色保持白色吗?
谢谢!
发布于 2013-10-07 03:18:11
你的问题与wordpress无关,而是css问题。
您可以在主题的style.css中添加以下代码片段,希望这对您有用。
.entry-title a {
color:#ffffff!important;
}
.entry-title a:active {
color:#ffffff!important;
}
.entry-title a:focus {
color:#ffffff!important;
}对于第129行的链接部分,请替换代码的以下部分:
.single-format-audio .entry-content a {
border-bottom: 1px solid #FFFFFF;
}有了这个
.single-format-audio .entry-content a {
border-bottom: 1px solid #FFFFFF;
color:white!important;
}https://stackoverflow.com/questions/19216408
复制相似问题