CloudBT CloudBT
  • 19-07-2014, 02:15:05
    #1
    Arkadaşlar merhaba, bu page speed teslerine bakınca en çok puan kırma işlemi olarak resimlerdeki genişlik ve yükseklik değerinin olmayışı çıkıyor.

    Konu hakkında uzman olan arkadaşlara sormak istedim. Bir sql sorgusu ile stede bulunan tüm resimlere maksimum widht ve height değeri atanabilirmi ?


    Bu arada karanlık bir odada yazıyorum başlıkta hata olmuş kusuruma bakmayın
  • 19-07-2014, 10:00:11
    #2
    <img src="<?php bloginfo('template_directory'); ?>/images/resim.gif" alt="<?php the_title(); ?>" width="226" height="158" />

    Index.php ve single.php 'de yukarıdaki gibi resimleri tanımlayan kod bulunur. Yukarıdaki örnekte olduğu gibi genişlik ve yükseklik değerlerini kullandığınız boyutlara göre düzenlerseniz sorununuz çözülür.

    Ücretsiz bir tema ise indirme linkini verin düzenlenmiş halini göndereyim.
  • 19-07-2014, 14:53:37
    #3
    Webbilgim adlı üyeden alıntı: mesajı görüntüle
    <img src="<?php bloginfo('template_directory'); ?>/images/resim.gif" alt="<?php the_title(); ?>" width="226" height="158" />

    Index.php ve single.php 'de yukarıdaki gibi resimleri tanımlayan kod bulunur. Yukarıdaki örnekte olduğu gibi genişlik ve yükseklik değerlerini kullandığınız boyutlara göre düzenlerseniz sorununuz çözülür.

    Ücretsiz bir tema ise indirme linkini verin düzenlenmiş halini göndereyim.
    Allah razı olsun hocam.
    Deneyip buradan bilgi vereceğim.
    Benim bunu isteme sebebim dediğim gibi pagespeed olayı. Mevcut şuanda ekli olan resimlerin ölçütlendirmesi eksik diye bir kaç puan kırıyor.
  • 25-12-2014, 10:57:56
    #4
    burada tam olarak nereye ekleyeceğim bu kodu. yardımcı olur musunuz ?


    <?php get_header(); 
    $ozelalan = fs_get_option('fs_refozel'); 
    $mansetreklam = fs_get_option('fs_mansetreklam');
    ?>
    <!-- Global container -->
    	<div id="globalContainer" class="wrap100">
    		<div class="wrapper">
    		
    			<div class="content wrap660">
    				<div class="videoAreaanasayfa">
    
    <?php include("slider.php" ); ?>
    					
    				</div>
    				
    				<div class="clear"></div>
    				<div class="mansetreklam"><?=$mansetreklam;?></div>
    				<div class="videosToday">
    <h1 class="title">Günün Videoları</h1>					
    
    					
    					<div class="navigation">
    						<ul>
    							<li class="active"><a href="javascript:void(0);"></a></li>
    							<li><a href="javascript:void(0);"></a></li>
    							<li><a href="javascript:void(0);"></a></li>
    							<li><a href="javascript:void(0);"></a></li>
    						</ul>
    					</div>
    					
    					<div class="slider">
    						<ul>
    							<li>
    								<div class="videoList">
    									<ul>
    										<?php $k = 0;
    										query_posts('showposts=32');
    										while ( have_posts() ) : the_post();  ?>										
    										<li>
    											<div class="image">
    												<a href="<?php the_permalink(); ?>">
    													<span class="play"></span>
    													<?php if (get_post_meta($post->ID, 'hd', true) != '') : ?><span class="hd"></span><?php endif; ?>
    													<?php if (has_post_thumbnail()) : $resim = get_the_post_thumbnail($post->ID, 'thumb'); elseif (get_post_meta($post->ID, $ozelalan, true) != '') : $resim='<img src="' . get_post_meta($post->ID, $ozelalan, true) . '" />'; else : $resim=''; endif;		
    													if($resim<>'') {$res = bolelim($resim,'src="','"'); } else { $goster=0; }?>
    													<?php if($res[0]<>'Array' || $goster<>0) { ?><img src="<?php echo $res[0]; ?>" alt="" /><?php } ?>
    												</a>
    											</div>
    											<a href="<?php the_permalink(); ?>" class="name"><?php echo ayesoft_baslik(get_the_title()); ?></a>
    											<a href="<?php echo get_the_author_link(); ?>" class="genr"><?php echo get_the_author(); ?></a>
    											<span class="date"><?php echo get_the_date('d/m/Y'); ?></span>
    										</li>	
    									<?php $k++;
    										if($k==8){$k=0; echo '</ul>
    								</div>
    							</li>
    							<li>
    								<div class="videoList">
    									<ul>';}?>										
    										<?php endwhile; ?> 										
    									</ul>
    								</div>
    							</li>
    									</ul>
    								</div>
    					</div>
    				
    				<h1 class="Manset"></h1>
    
    				<h2 class="DSCategories"</h2>
    				<div class="DSCategories">
    										
    				<?php 
    					$j=0;
    					for($i=1;$i<=fs_get_option('fs_anakat');$i++) { 
    					$j++;
    					if($j==5)$j=1;?>
    					<div class="cat type0<?php echo $j; ?>">
    						<div class="title">
    							<?php		$alan = 'fs_kat'.$i;
    							$manset = get_cat_id(fs_get_option($alan)); ?>							
    							<span><?php echo get_cat_name( $manset ); ?></span>
    							<a href="<?php echo get_category_link($manset); ?>">Tümünü Gör</a>
    						</div>			
    						<div class="videoList">
    							<ul>
    							<?php
    							query_posts('showposts=2&cat='.$manset.'');
    							while ( have_posts() ) : the_post(); ?>
    								<li>
    									<div class="image">
    										<a href="<?php the_permalink(); ?>">
    											<span class="play"></span>
    											<?php if (get_post_meta($post->ID, 'hd', true) != '') : ?><span class="hd"></span><?php endif; ?>
    											<img src="<?php echo  get_post_meta($post->ID, $ozelalan, true); ?>" alt="" />
    										</a>
    									</div>
    									<a href="<?php the_permalink(); ?>" class="name"><?php echo ayesoft_baslik(get_the_title()); ?></a>
    									<a href="<?php echo get_the_author_link(); ?>" class="genr"><?php echo get_the_author(); ?></a>
    									<span class="date"><?php echo get_the_date('d/m/Y'); ?></span>
    								</li>
    							<?php endwhile; ?>
    																
    							</ul>
    						</div>
    					</div>
    				<?php } ?>
    		
    
    				</div>			
    			</div>		
    			<?php get_sidebar(); ?>	
    <center><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- nostgenisdikey -->
    <ins class="adsbygoogle"
         style="display:inline-block;width:300px;height:600px"
         data-ad-client="ca-pub-1835876626438590"
         data-ad-slot="2662103016"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script></center>		
    		</div>
    	</div>
    <?php get_footer(); ?>
    
    
    
    <style>