需要在WordPress博客文章中更改字体颜色的格式


在我的

页面上,目前的博客文章都有白色文本,这就是我想要的。当我点击进入从主站点到特定博客文章的帖子时,标题颜色和链接颜色会发生变化(请参阅链接)。我的网站已上线,需要帮助来确定是否可以解决此问题。

我如何解决这个问题,使它们像在主博客滚动页面上一样保持白色......

例:

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

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

谢谢!

你的问题与wordpress无关,它是一个css问题..

您可以在主题的样式中添加以下代码片段.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;
    }

最新更新