• 03-07-2017, 15:15:19
    #1
    Merhaba arkadaşlar
    Resimleri 85 e 65 yapıyorum ama sitede öyle gözükmüyor sıkıntı nerde sizce
    Alıntı
    <li class="<?php echo $postclass; ?>">
    <a rel="follow" class="relatedthumb" href="<?php the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>">
    <span class="rthumb">
    <?php if(has_post_thumbnail( )): ?>
    <?php the_post_thumbnail('widgetthumb', 'title='); ?>
    <?php else: ?>
    <img src="<?php echo get_template_directory_uri(); ?>/images/smallthumb.png" alt="<?php the_title(); ?>" width='85' height='65' class="wp-post-image" />
  • 03-07-2017, 15:35:28
    #2
    class="wp-post-image" /> diyor ki ben veriyi css'de wp-post-image yolundan çekiyorum.

    css'de wp-post-image arat orayı height:65px; width:85px; yap dene.
  • 03-07-2017, 16:11:18
    #3
    KSCOM adlı üyeden alıntı: mesajı görüntüle
    class="wp-post-image" /> diyor ki ben veriyi css'de wp-post-image yolundan çekiyorum.

    css'de wp-post-image arat orayı height:65px; width:85px; yap dene.
    kodlara bakarsan hocam orası resim eklenmediği zaman boş resim gözükmesini sağlayan kod.

    Buraya width height eklememiz gerekmiyor mu <?php the_post_thumbnail('widgetthumb', 'title='); ?>
  • 03-07-2017, 16:15:08
    #4
    bilgicinitr adlı üyeden alıntı: mesajı görüntüle
    kodlara bakarsan hocam orası resim eklenmediği zaman boş resim gözükmesini sağlayan kod.

    Buraya width height eklememiz gerekmiyor mu <?php the_post_thumbnail('widgetthumb', 'title='); ?>
    yanlış yeri de alıntılasam mantık aynı hocam.
    css yolu varsa mevcut yola ekleyin yoksa ebatlarını ayarlayacağınız kod'u class= içine alıp css de ebatlayın.
  • 03-07-2017, 23:03:40
    #5
    Phpcoder lar yardımcı olursa sevinirim.

    Alıntı
    <img width="85" height="55" src="/wp-content/uploads/2017/06/parmakKIZ.jpg" class="attachment-widgetthumb size-widgetthumb wp-post-image" alt="parmakkiz" title="" srcset="/wp-content/uploads/2017/06/parmakKIZ.jpg 1000w, https:///wp-content/uploads/2017/06/...IZ-300x196.jpg 300w, https://wp-content/uploads/2017/06/p...IZ-768x501.jpg 768w" sizes="(max-width: 85px) 100vw, 85px">
    lement.style {
    }
    style.css?ver=4.6.1:2610
    .relatedthumb img {
    width: 85px;
    height: 65px;
    margin-top: 0;
    margin-bottom: 0;
    }
    style.css?ver=4.6.1:875
    .relatedthumb img {
    width: 85px;
    height: 65px;
    margin-top: 0;
    margin-bottom: 0;
    }