這似乎是一些你的CSS規則將覆蓋對方的情況。
在/wp-content/themes/paulinakozan/fonts/fontello/css/fontello.css
有個規則:
[class^="icon-"]::before, [class*=" icon-"]::before {
display: inline-block;
font-family: "fontello"; // <-- IMPORTANT LINE!
font-style: normal;
font-variant: normal;
font-weight: normal;
line-height: 1em;
margin-left: 0.2em;
margin-right: 0.2em;
text-align: center;
text-decoration: inherit;
text-transform: none;
width: 1em;
}
但另一個CSS是由您的網站加載:/wp-content/plugins/modula-best-grid-gallery/scripts/modula.css?ver=4.4.2
還有另外一個規則:
[class^="icon-"]::before, [class*=" icon-"]::before {
font-family: "modula-icons" !important; // <-- ANOTHER IMPORTANT LINE!
font-style: normal !important;
font-variant: normal !important;
font-weight: normal !important;
line-height: 1;
text-transform: none !important;
}
第二FONT-FAMILY定義modula-icons
定義!!重要,所以它贏得了對fontello
! 這就是爲什麼你的圖標加載不正確的原因。這些圖標根本不存在於模塊圖標中。
如果我在Chrome中打開您的網站並在開發人員工具欄中禁用modula-icons規則,社交圖標顯示正確。
非常感謝你的幫助:) 對不起,這些瑣碎的問題。我應該自己檢查一下 –