首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >需要更改wordpress博客文章中字体颜色的格式

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

Stack Overflow用户
提问于 2013-10-07 02:53:03
回答 1查看 192关注 0票数 0

在我的网页上,目前的博客帖子都有白色的文本,这就是我想要的。当我点击一个帖子从主站点到特定的博客帖子时,标题颜色和链接颜色都会发生变化(参见链接)。我的网站是现场的,需要帮助找出这是否可以修复。

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

示例:

主营: www.trinitybeats.com

具体发布:http://www.trinitybeats.com/archie-horizon-original-mix/ (注意标题颜色和链接颜色)

这里是特定于博客格式的代码:

代码语言:javascript
复制
 <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>

,在这段代码中有什么我可以修复的,当进入特定的博客页面时,字体颜色保持白色吗?

谢谢!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-10-07 03:18:11

你的问题与wordpress无关,而是css问题。

您可以在主题的style.css中添加以下代码片段,希望这对您有用。

代码语言:javascript
复制
.entry-title a {
    color:#ffffff!important;
}

.entry-title a:active {
    color:#ffffff!important;
}
.entry-title a:focus {
    color:#ffffff!important;
}

对于第129行的链接部分,请替换代码的以下部分:

代码语言:javascript
复制
.single-format-audio .entry-content a {
    border-bottom: 1px solid #FFFFFF;

}

有了这个

代码语言:javascript
复制
.single-format-audio .entry-content a {
        border-bottom: 1px solid #FFFFFF;
        color:white!important;

    }
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19216408

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档