Her kullanıcı sizin istediğiniz yazı boyutu’nu kullanmak zorunda değildir. Belki daha büyük bir yazı istiyor o zaman ctrl+ scroll up yapacağına mouse’si ile siz sitenize böyle iyi bir eklenti ekleyerek görünümüzü zenginleştirebilirsiniz. Anlatıma geçelim.
Ne Kazanırız ?
- Daha iyi bir sayfa görünümü.
- Kullanıcı dostu tasarım.
</head>
Şimdi bu kodun hemen üstüne aşağıdaki kodu yapıştırıyoruz.
<!-- sosyofikir.com kod başlangıcı --> <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js' type='text/javascript'/> <script> $(document).ready(function(){ //ID, class and tag element that font size is adjustable in this array //Put in html or body if you want the font of the entire page adjustable var section = new Array('span','.section2'); section = section.join(','); // Reset Font Size var originalFontSize = $(section).css('font-size'); $(".resetFont").click(function(){ $(section).css('font-size', originalFontSize); }); // Increase Font Size $(".increaseFont").click(function(){ var currentFontSize = $(section).css('font-size'); var currentFontSizeNum = parseFloat(currentFontSize, 10); var newFontSize = currentFontSizeNum*1.2; $(section).css('font-size', newFontSize); return false; }); // Decrease Font Size $(".decreaseFont").click(function(){ var currentFontSize = $(section).css('font-size'); var currentFontSizeNum = parseFloat(currentFontSize, 10); var newFontSize = currentFontSizeNum*0.8; $(section).css('font-size', newFontSize); return false; }); }); </script> <!-- sosyofikir.com kod sonu -->
Şimdi de aşağıdaki kodu bulun ;
<div class='post-header-line-1'/>
Şimdi yukarıda bulduğumuz kodun hemen altına aşağıdaki kodu ekliyoruz.
<!-- sosyofikir.com kod baslangıcı --> <b:if cond='data:blog.pageType == "item"'> <table border='0' style='float:right; margin-left:5px;'><tr><td><img border='0' src='https://4.bp.blogspot.com/-b1_J5npcUag/TdzJSK1mwdI/AAAAAAAAEFU/f7mZHFshlQI/s1600/font-size-blogger-gadget.png'/> | <a class='increaseFont' style='cursor: pointer; cursor: hand;' title='Larger Text'><img src='https://4.bp.blogspot.com/-DP_25fJBGew/TdzJRS0KcJI/AAAAAAAAEFM/P9-ikZyu3UE/s1600/bigger-font+-+Copy.png'/></a> <a class='decreaseFont' style='cursor: pointer; cursor: hand;' title='Smaller Text'><img src='https://3.bp.blogspot.com/-9SuQUU3YZlI/TdzJTOokcLI/AAAAAAAAEFg/Nz8SeJ6-QIs/s1600/smaller-font.png' style='cursor: hand;'/></a> <a class='resetFont' style='cursor: pointer; cursor: hand;' title='Reset Text Size'><img src='https://4.bp.blogspot.com/-i-uGhNM_bks/TdzJScrNpII/AAAAAAAAEFY/v4XGHbR30Cw/s1600/reset-font.png' style='cursor: hand;'/></a></td></tr></table> </b:if> <!-- sosyofikir.com kod sonu -->
Şimdi son olarak bu kodu buluyoruz ;
<data:post.body/>
O kodun yerine bu kodu yapıştırın.
<span><data:post.body/></span>
hocam yorumunuz'dan sonra siteme wordpress ile ilgili yazı fontu ayarı konusu ekledim hemen anasayfada www.sosyofikir.com :) iyi çalışmalar
Hocam bunun wordpress sitede yapılma ihtimali var mı bir ara çok aradım ama bulamadım.