admin管理员组文章数量:1319025
I guess the title says all. I'm trying to change the search icon of the twenty fourteen theme, because I need a darker one.
I tried like this:
.search-toggle {
background: url('.png');
}
which results in nothing.
I guess the title says all. I'm trying to change the search icon of the twenty fourteen theme, because I need a darker one.
I tried like this:
.search-toggle {
background: url('http://www.citizen-science.at/wordpress/wp-content/themes/cs/img/search-icon.png');
}
which results in nothing.
Share Improve this question asked Mar 5, 2014 at 11:39 4ndro1d4ndro1d 1791 gold badge1 silver badge18 bronze badges2 Answers
Reset to default 1This is more of a simple CSS question than actually related to WordPress.
However, you need to change your style.css
. As TwentyFourteen does not use images, but pseudo css-classes, you need to change this as well:
.search-toggle {
background: #fff url('http://www.citizen-science.at/wordpress/wp-content/themes/cs/img/search-icon.png') no-repeat;
background-size: 30px;
background-position: 10px;
}
.search-toggle:before {
content: "";
}
By the way, your background image is huge. Try providing a smaller one.
Aside from TwentyFourteen, like Storefront,I had to use this. Since this thread is appearing in the top search. I have to place my code in here.
.widget_product_search form::before{
color:#c26c5e !important;
}
本文标签: cssChange the search icon in twenty fourteen
版权声明:本文标题:css - Change the search icon in twenty fourteen 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742050940a2418059.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论