Web Analytics Made Easy - Statcounter

Tema düzenleyici

XenForo Twitter İkonunu X İle Değiştirme

  • Konuyu Başlatan Konuyu Başlatan Celil
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 1
  • Görüntüleme Görüntüleme 567

Celil

WFN Üye
Katılım
13 Nis 2024
Mesajlar
3
Çözümler
0
Tepki Skoru
8
Ticaret Puanı
0
Üyelik
1 Yıl 11 Ay 10 Gün
1/3
Konu sahibi
Güncelleme geldi bu konuyla ilgili ancak eski sürümlerde halen kuş ikonu duruyor paylaşım kısmında bunu x ile değiştirmeyi göstereceğim.

Aşağıdaki kodu extra.less şablonunda en alta ekle :)

Kod:
.shareButtons-button.shareButtons-button--twitter:hover {
    background-color: #000000;
}
.shareButtons--iconic .shareButtons-button>svg {
    vertical-align: middle;
}

share_page_macros şablonuna git ve aşağıdaki kodu bul

Kod:
<xf:if is="$xf.options.tweet.enabled">
    <a class="shareButtons-button shareButtons-button--brand shareButtons-button--twitter" data-href="https://twitter.com/intent/tweet?url={url}&amp;text={title}{{ $xf.options.tweet.via ? '&amp;via=' . $xf.options.tweet.via : '' }}{{ $xf.options.tweet.related ? '&amp;related=' . $xf.options.tweet.related : '' }}">
        <i aria-hidden="true"></i>
        <span>{{ phrase('twitter') }}</span>
    </a>
</xf:if>

ve bu kodu aşağıdaki ile değiştir

Kod:
<xf:if is="$xf.options.tweet.enabled">
    <a class="shareButtons-button shareButtons-button--brand shareButtons-button--twitter" data-href="https://twitter.com/intent/tweet?url={url}&amp;text={title}{{ $xf.options.tweet.via ? '&amp;via=' . $xf.options.tweet.via : '' }}{{ $xf.options.tweet.related ? '&amp;related=' . $xf.options.tweet.related : '' }}">
        <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/></svg>
        <span>{{ phrase('twitter') }}</span>
    </a>
</xf:if>
 
Güzel bir anlatım olmuş Celil buradaki Paylaş: yazısı çok sade kalıyor mesela onada böyle ikonlara verildiği gibi soft bir görünüm kazandırabilir misin
 

Sende şimdi bize katılmak ister misin?

Kayıt ol

Bize katılım kolay ve ücretsizdir!

Giriş Yap

Zaten bir hesabınız var mı? Buradan giriş yapın.

Foruma git ?

Bu konuyu görüntüleyen kullanıcılar

Son Konular

İpuçları
Geri
Üst