需要在wordpress博客帖子中更改字体颜色的格式

时间:2013-10-07 02:53:04

标签: html wordpress formatting format blogs

在我的页面上,目前博客文章都有白色文字,这就是我想要的。当我点击从主站点到特定博客帖子的帖子时,标题颜色和链接颜色会发生变化(请参阅链接)。我的网站是实时的,需要帮助确定是否可以修复..

如何修复此问题,使其保持白色状态,就像它们位于主博客页面上一样......

示例:

主要: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>

此代码中是否有任何内容可以修复,以便在进入特定博客页面时保持字体颜色为白色?

谢谢!

1 个答案:

答案 0 :(得分:0)

你的问题与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;

    }