【问题标题】:Need to change formatting of font color within wordpress blog post需要在 wordpress 博客文章中更改字体颜色的格式
【发布时间】:2013-10-13 12:41:29
【问题描述】:

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

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

示例:

主要: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 文件。然后,阅读悬停和链接状态样式w3schools.com/css/css_link.asp

标签: html wordpress formatting format blogs


【解决方案1】:

您的问题与 wordpress 无关,而是 css 问题..

您可以在主题的 style.css 中添加以下代码 sn-p 希望这对您有用..

.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;

    }

【讨论】:

  • for link 寻找合适的css选择器并做类似的事情。
  • 你能像标题一样给我具体的代码吗?谢谢
  • 我当然可以给,但我不知道你说的是哪个链接,可以发截图吗?
  • 特定博客文章页面中的链接仍然是彩色而不是白色:trinitybeats.com/cris-cab-liar-liar-feat-pharrell-williams
  • 在常规站点上它是白色的:trinitybeats.com 与我上面提到的问题相同,您将其修复为标题而不是页面底部的链接
猜你喜欢
  • 2015-10-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-06-05
  • 1970-01-01
相关资源
最近更新 更多