【问题标题】:Disabling header effect in wordpress theme (Bulan)在 wordpress 主题中禁用标题效果(Bulan)
【发布时间】:2019-03-27 00:59:11
【问题描述】:

我在禁用免费 WordPress 主题的功能时遇到了一个小问题。主题名为“Bulan”,并在标题图像上添加了黄色光晕,但我似乎无法在代码中摆脱它。在 chrome 检查视图中,我可以看到它是在查看索引页面源时内联生成的。

在索引的标题标签之间有:

<style id='bulan-style-inline-css' type='text/css'>
  .site-header {
    background-image: url("http://upabove.be/myrdd/wp-content/uploads/2018/10/town_summer-1.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }
  
  .site-header::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(204, 137, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
  }
</style>

有人知道如何解决这个问题吗?

网站的网址是: www.upabove.be/myrdd

一切顺利,并在此先感谢您, 米歇尔

【问题讨论】:

    标签: javascript html css wordpress header


    【解决方案1】:

    如果你在代码中找不到它,一个想法是通过将 CSS 添加到标题中来覆盖它,如果它最终位于 CSS 之上,那么遗憾的是你将不得不包含“!important”来制作确保它确实覆盖了伪类背景颜色。例如:

    .site-header::after {background: none;}
    

    【讨论】:

      猜你喜欢
      • 2018-01-21
      • 2017-01-16
      • 1970-01-01
      • 2015-11-19
      • 2022-12-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-17
      相关资源
      最近更新 更多