• 08-01-2010, 23:38:48
    #1
    Üyeliği durduruldu
    Şuan elimde çok güzel bir tema var fakat bileşen(widgets) uyumlu değil. Bunu nasıl uyumlu yapabiliriz? Ayrıca konu içerisinde tagları gösteremiyorum bunu hangi kodla ve nası gösterebiliriz?

    Lütfen arkadaşlar yardımlarınızı bekliyorum...
  • 09-01-2010, 00:42:33
    #2
    Üyeliği durduruldu
    sidebar.php'yi açın,

    Alıntı
    <div id="sidebar" role="complementary">
    benzeri(sidebar tanımlı) kodun altına,

    Alıntı
    <?php /* Widgetized sidebar, if you have the plugin installed. */
    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    bunu ekleyin. sayfanın altındaki son div'den önce de

    Alıntı
    <?php endif; ?>
    bunu ekleyin.

    funcstions.php dosyasının en altına da

    Alıntı
    <?php
    if ( function_exists('register_sidebar') )
    register_sidebar(array(
    'name' => 'Sidebar Right',
    'before_widget' => '',
    'after_widget' => '',
    'before_title' => '<h2>',
    'after_title' => '</h2>',
    ));
    ?>
    kodunu ekleyin. tema widgetlı olur.

    tabii widget kullanımı büyük ihtimalle css sorunları çıkaracaktır.

    taglar içinde single.php dosyasını açın, content bölümünden sonra

    Alıntı
    <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
    kodunu ekleyin.
  • 10-01-2010, 00:59:30
    #3
    Üyeliği durduruldu
    hocam en üstteki kod yok sidebarda.
    <?php endif; ?
    > kısmınıda eklediğimde hata verdi tema bozuldu. Ne yapabiliriz başka?
  • 10-01-2010, 01:10:28
    #4
    Üyeliği durduruldu
    sidebar.php kodlarını ve temanın adını buraya yazın, halledelim.
  • 10-01-2010, 02:56:12
    #5
    Üyeliği durduruldu
    notepad-chaos teması hocam, teşekkür ederim ilgilendiğin için
    <div class="sonyorum-head"></div>
    <div class="recent-posts">
    <?php global $wpdb; $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,comment_author_url, SUBSTRING(comment_content,1,30) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) WHERE comment_approved = '1' AND comment_type = '' AND post_password = '' ORDER BY comment_date_gmt DESC LIMIT 10"; $comments = $wpdb->get_results($sql); $output = $pre_HTML; $output .= "\n<ul>"; foreach ($comments as $comment) { $output .= "\n<li><a href=\"" . get_permalink($comment->ID) . "#comment-" . $comment->comment_ID . "\" title=\"Yazan: ".strip_tags($comment->comment_author) ." | Konu : " . " " . $comment->post_title . "\">" . strip_tags($comment->com_excerpt) ."</a></li>"; } $output .= "\n</ul>"; $output .= $post_HTML; echo $output;?>
    </div>
    <div class="postit-bottom"></div>
    <div style="clear:both;"></div>
    <div class="categories-upper"></div>
    
    <div class="categories">
    
      <ul>
    
        <?php wp_list_categories('sort_column=name&hierarchical=0&title_li='); ?>
    
      </ul>
    
    </div>
    
    <div class="categories-btm"></div>
    
    
    
    <div class="side-meta">
    
      <ul>
    
        <?php wp_register(); ?>
    
        <li>
    
          <?php wp_loginout(); ?>
    
        </li>
    
        <li><a href="http://validator.w3.org/check/referer" title="XHTML 1.0 Transitional standartındadır.">Standart <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
    
        <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
    
        <li><a href="http://wordpress.org/" title="Wordpress Günlük Sistemi">WordPress</a></li>
    
        <?php wp_meta(); ?>
      </ul>
    
    <h2>Etiketler</h2>
    <?php wp_tag_cloud('smallest=11&largest=25&unit=px&number=50&format=flat&orderby=count&order=RAND'); ?> 
    </div>
  • 10-01-2010, 03:05:35
    #6
    http://www.yazikolik.com/2009/10/wor...gi-ekleme.html Şuraya da bakabilirsin.
  • 10-01-2010, 03:19:40
    #7
    Üyeliği durduruldu
    bu single.php'in en altına inin ve bu kodu yapıştırın:

    Alıntı
    <?php /* Widgetized sidebar, if you have the plugin installed. */
    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    <?php endif; ?>
    sonra tema dosyaları içinde functions.php varsa onu açıp en altına bu kodu yapıştırın. eğer functions.php yoksa oluşturup, içine bunu atın.

    Alıntı
    <?php
    if ( function_exists('register_sidebar') )
    register_sidebar(array(
    'name' => 'Sidebar Right',
    'before_widget' => '',
    'after_widget' => '',
    'before_title' => '<h2>',
    'after_title' => '</h2>',
    ));
    ?>
    böyle yapınca, sidebarda şu an gördüklerinizi ve widget ile yükleyeceklerinizi beraber görürsünüz. eğer widget kullanmadan çıkanlardan kullanmak istemedikleriniz varsa, single.php'den onlarla ilgili bölümleri silin.
  • 10-01-2010, 13:16:16
    #8
    Üyeliği durduruldu
    hocam dediklerinizi yaptım, fakat bileşen kısmında hala aynı yazı var. Başka bi ayar yapmam lazım mı? Kusura bakmayın sizide yoruyorum fakat çok fazla aram yok wp ile.

    Belirlenmiş Yan Menü Yok

          Bu mesajı görüyorsunuz, çünkü temanız bileşenler (widgets) ile uyumlu değil. Yani şimdiki haliyle temanızın yan menüsünü bileşenler yardımıyla değiştiremezsiniz. Temanızı bileşenler ile uyumlu hale getirmek için lütfen şu belgeye bakın.
  • 10-01-2010, 14:45:33
    #9
    Üyeliği durduruldu
    en iyisi siz temanın tamamını verin bize de yapalım.