Yapacağımız işlem temamızın functions.php dosyasını notepad++ ile açarak aşağıda verilmiş olan fonksiyonları
<?php
satırından hemen sonraya yapıştırmaktır.
add_filter('the_content', 'blogizma_otomatik_nofollow');
function blogizma_otomatik_nofollow($content) {
return preg_replace_callback('/<a>]+/', 'blogizma_otomatik_nofollow_callback', $content);
}
function blogizma_otomatik_nofollow_callback($matches) {
$link = $matches[0];
$site_link = get_bloginfo('url');
if (strpos($link, 'rel') === false) {
$link = preg_replace("%(href=S(?!$site_link))%i", 'rel="nofollow" $1', $link);
} elseif (preg_match("%href=S(?!$site_link)%i", $link)) {
$link = preg_replace('/rel=S(?!nofollow)S*/i', 'rel="nofollow"', $link);
}
return $link;
}
Yukarıda verilmiş olan kodları functions.php dosyanızda belirtilen yere ekledikten sonra kaydedip tekrar FTP konumuna yüklemeniz yeterli olacaktır.
Aryna Sabalenka is a professional tennis player representing Belarus who is slowly gaining the fame she deserves. Aryna is popular…
Kelly Inouye-Perez is respected and beloved by many in the college softball world. She was the main player in a…
Ella Parker has quickly emerged as a key player in college softball for Oklahoma Sooners. Parker, who excels with her…
Gabbie Garcia has become a standout in collegiate softball, mixing her strong skills with a championship mentality learned when she…
Jordan Woolery has established herself as a reliable and valuable player in softball at the collegiate level. She is a…
Jessica Clements is a famous collegiate softball player recognized for her amazing hitting, consistent performance, and strong defense. Following her…
View Comments
çok beyendiyim veçok yardımcı olan bir porguram
cok faydalı bir bilgi elinize saglık