Google news’e kabul edilen sitelerinize news abone ol kodu nasıl eklenir. Sitenize google news abone ol kodu ekleme ile tüm sorular haberimizde.
Aşağıdaki kodu CSS dosyasına uygun bir yere ekleyiniz. CSS kodunu tema panelinde olan Ek CSS- Özel CSS gibi alanlardan birine ekleyin eğer bu ikisi de yoksa temanızın style.css dosyasına ekleyiniz.
/* google news butonu */
.google-news{
display
:inline-
block
;
vertical-align
:
top
}
.google-news a{
display
:
block
;
color
:
#fff
;
width
:
94px
;
height
:
34px
;
border
:
1px
solid
#e3e3e3
;border-radius:
3px
;
background
:
url
([
url
]https://ilgintv.com/medya/g-news.svg[/
url
])
no-repeat
center
center
;background-
size
:
100%
}.soft-post-article{
height
:
auto
;
overflow
:
hidden
}
Yukarıda verilen kodu ekledikten sonra aşağıdaki kodu GOOGLE NEWS ABONE OL butonunu sitenizde nerde görünmesini istiyorsanız oraya ekleyiniz.
<
div
class
=
"google-news"
>
<
a
href
=
"https://news.google.com/publications/CAAqBwgKMPy2lAswy_ypAw"
target
=
"_blank"
rel
=
"nofollow noopener"
title
=
"Abone Ol"
></
a
>
</
div
>
Eğer ben bu kodlarla uğraşamam diyorsanız size direk html şeklinde bir alternatif daha vereyim :
[infobox color=”#000000″]<a href=”https://news.google.com/publications/CAAqBwgKMPy2lAswy_ypAw?hl=tr&gl=TR&ceid=TR%3Atr” target=”_blank” rel=”nofollow noopener noreferrer”><img class=”alignleft wp-image-2389 ” src=”https://ilgintv.com/wp-content/uploads/2020/05/googlenews123.png” alt=”” width=”204” height=”37” /></a>[/infobox]Google news abone ol banner kullanmaya başlayabilirsiniz.
Yorumlar