Yazı resim yanına nasıl alabilirim?
10
●731
- 18-07-2013, 02:13:08Öne cıkarılmış görsel bu, normalde 610x250 resim boyutu, ben bunu küçülttüm ve sağ tarafı boş kaldı. Bu verdiğiniz kodu nereye ekliyoruz?hamdialev adlı üyeden alıntı: mesajı görüntüle
- 18-07-2013, 02:15:34öne çıkarılmış görseli sabit kullanıyorsanız, tema dosyalarından yapmanız gerekecektir..
tekil yazı ise, single.php de post_thumbnail kısmını bulup, <img tagından sonra style="float:left" eklemeniz iş görecektir..
ya da paylaşırsınız single.php dosyanızı biz bakarız
- 18-07-2013, 02:21:30hamdialev adlı üyeden alıntı: mesajı görüntüle
<!-- BEGIN MAIN --> <div id="main"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php if(get_option('pyre_posts_navigation') == 'On'): ?> <div class="navigation"> <div class="alignleft"><?php previous_post('%', '← Önceki Konu', 'no'); ?></div> <div class="alignright"><?php next_post('%', 'Sonraki Konu →', 'no'); ?></div> </div> <?php endif; ?> <div class="post-heading"> <h1><?php the_title(); ?></h1> <span class="heading-author"><?php the_author(); ?></span> <span class="heading-date"><?php the_date(); ?></span> <span class="heading-comments"><?php comments_popup_link('0','1','%'); ?></span> </div> <?php if(has_post_thumbnail()): ?> <?php $show_image = false; if(get_post_meta($post->ID, 'pyre_featured_image', true) == 'yes') { $show_image = true; } if(get_post_meta($post->ID, 'pyre_featured_image', true) == '' && get_option('pyre_posts_featured') == 'Off') { $show_image = true; } if(get_option('pyre_posts_featured') == 'Off') { $show_image = false; } ?> <?php if( $show_image == true ): ? <div class="post-thumb"> <?php $fullImage = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full'); ?> <?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'post-image'); ?> <a class='lightbox' href='<?php echo $fullImage[0]; ?>'><img src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>" width='300' height='200' /></a> </div> <?php endif; ?> <?php endif; ?> <div class="post-entry"> <?php if( (bu sırada mı? iki tane var cünkü - 18-07-2013, 02:39:44<a class='lightbox' href='<?php echo $fullImage[0]; ?>'><img style="float:left; margin:0 5px 5px 0;" src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>" width='300' height='200' /></a>deLi adlı üyeden alıntı: mesajı görüntüle
- 18-07-2013, 13:30:19Amin cümlemizden..deLi adlı üyeden alıntı: mesajı görüntüle
Onlar css ayarları ile olacak şeyler.. css den düzenleme yapmanız gerekiyor.. - 18-07-2013, 14:00:39Tamam düzenlerim ben hangi satır aceba biliyor musunuz?hamdialev adlı üyeden alıntı: mesajı görüntüle
--R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 14:00:39 -->-> Daha önceki mesaj 13:41:50 --
/*** Post Styles ***/ .post-heading { padding:0px 0 25px 0; } .post-heading h1 { font-size:32px; text-shadow: 1px 1px 1px #FFF; } .post-heading span { font-size:11px; text-transform: uppercase; color:#888; text-shadow: 1px 1px 1px #FFF; margin-right:8px; } .heading-author { background:url(images/author-icon.png) no-repeat left; padding-left:20px; } .heading-date { background:url(images/clock-icon.png) no-repeat left; padding-left:20px; } .heading-comments { background:url(images/comment-icon.png) no-repeat left; padding-left:24px; } .heading-comments a { color:#888; } .post-thumb { margin-bottom:20px; } .post-thumb img { border:1px solid #D7D7D7; padding:5px; } .post-entry p { margin-bottom:20px; line-height:21px; font-size:13px; } .post-meta { border-top:1px solid #DDD; border-bottom:1px solid #DDD; padding:8px 2px 10px 2px; font-size:11px; color:#777; overflow:hidden; margin-bottom:1px } .post-meta a { color:#444; } .post-meta-tags { float:left; background:url(images/tag-icon.png) no-repeat left; padding-left:18px; } .post-meta-cats { float:right; background:url(images/category-icon.png) no-repeat left; padding-left:18px; } .meta-arrow { font-size:16px; color:#d00000; margin-right:4px; } .post-author { background:#EEE; padding:20px; margin-bottom:40px; overflow:hidden; } .post-author img { background:#FFF; border:1px solid #D7D7D7; padding:5px; float:left; margin-right:12px; } .post-author h5 { font-size:14px; font-family:Arial; border-bottom:1px solid #dbdbdb; overflow:hidden; padding-bottom:5px; margin-bottom:10px; text-shadow: 1px 1px 1px #FFF; } .post-author h5 em { color:#636363; } .post-author small { float:right; color:#636363; } .post-author a { color:#333; } .author-descrip { color:#444; line-height:19px; text-shadow: 1px 1px 1px #FFF; } .navigation { width: 100%; overflow: hidden; margin-bottom: 20px; } .navigation .alignleft { float: left; } .navigation .alignright { float: right; }