- 
                    Üyelik
                    01.11.2012
                
 
                - 
                    Yaş/Cinsiyet
                    33 / E
                
 
                - 
                    Meslek
                    Girişimci
                
 
                - 
                    Konum
                    Balıkesir
                
 
            
            
                - 
                    Ad Soyad
                    M** D**
                
 
                - 
                    Mesajlar
                    1583
                
 
                - 
                    Beğeniler
                    207 / 257
                
 
                - 
                    Ticaret
                    5, (%100)
                
 
            
         
                Arkadaşlar yazı içerisine öne çıkarılmış görsel ekledim, alanın genişliği 728px ancak daha önce yüklediğim görseller küçük css ile max-width verip kötü görünmesini istemedim, bu yüzden eski görsellerin görünmemesini istiyorum, bunun için 728px altı görünmesin şeklinde bir şey nasıl yaparım ? mesela css ile 728px altı display: none; olsun ?
                        
     
                    
                         
                                            
        
        
        
            
            
                - 
                    Üyelik
                    30.07.2011
                
 
                - 
                    Yaş/Cinsiyet
                    33 / E
                
 
                - 
                    Meslek
                    Öğrenci
                
 
                - 
                    Konum
                    İzmir
                
 
            
            
                - 
                    Ad Soyad
                    ** **
                
 
                - 
                    Mesajlar
                    30
                
 
                - 
                    Beğeniler
                    10 / 5
                
 
                - 
                    Ticaret
                    2, (%100)
                
 
            
         
                İki yolu var, ilkisi çok temiz fakat biraz meşakatli ikincisi çok daha basit. Bu yüzden direkt ikinci yolu ayarlayayım
resmin id'si resimAlan olsun...
var resim   =  document.getElementById('resimAlan'); 
var width   =  resim.clientWidth;
if(width<728) $("#resimAlan").hide();
                        
            
                                
                                
                    
                    1 kişi bu mesajı beğendi.
                 
                             
            
         
     
                    
                            ASEREO İnternet Hizmetleri | www.asereo.com | Skype:agokselb
                    
                         
                                                                                                                
        
        
        
            
            
                - 
                    Üyelik
                    30.07.2011
                
 
                - 
                    Yaş/Cinsiyet
                    33 / E
                
 
                - 
                    Meslek
                    Öğrenci
                
 
                - 
                    Konum
                    İzmir
                
 
            
            
                - 
                    Ad Soyad
                    ** **
                
 
                - 
                    Mesajlar
                    30
                
 
                - 
                    Beğeniler
                    10 / 5
                
 
                - 
                    Ticaret
                    2, (%100)
                
 
            
         
                Resme id="resimAlan" ekleyin ve aşağıdaki kodu çalıştırın.
var resim = document.getElementById('resimAlan');
var width = resim.clientWidth;
if(width<729) document.getElementById('resimAlan').style.display = "none";
                        
     
                    
                            ASEREO İnternet Hizmetleri | www.asereo.com | Skype:agokselb
                    
                         
                                                        
        
        
        
            
            
                - 
                    Üyelik
                    30.07.2011
                
 
                - 
                    Yaş/Cinsiyet
                    33 / E
                
 
                - 
                    Meslek
                    Öğrenci
                
 
                - 
                    Konum
                    İzmir
                
 
            
            
                - 
                    Ad Soyad
                    ** **
                
 
                - 
                    Mesajlar
                    30
                
 
                - 
                    Beğeniler
                    10 / 5
                
 
                - 
                    Ticaret
                    2, (%100)
                
 
            
         
                single-post.php'yi aşağıdaki gibi değiştirin:
                    
					
				
				
<script></script><script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
                     id="post-">
                                                                                            $categories = get_the_category();
                                $tags = get_the_tags();
                                $post_id = get_the_ID();
                                ?>                                   
                                
                                    
                                    
								  
                                    
                                     
                                     
                               
                                                                                                                         
                                                            							 	 		}
							   		} 
								?>                                 
							 '
' . __( 'Pages:', 'tl_back' ) . '', 'after' => '
' ) ); ?>                            
                            							$GLOBALS['sbg_sidebar'] = get_post_meta($post_id, 'sbg_selected_sidebar_replacement', true);  							
							?>                          
                              							  		$total_review = absint(themeloy_get_total_review($post_id));
							  	?>                                           
                                									if($enable_review[0] == 1 && $total_review > 0) { ?>                                                                     
                                                                  
                              										for($i=0; $i<10; $i++) 
										{
											$rate_value = 'criteria'.$i.'themeloy_slider';
											$text_value = 'criteria'.$i.'themeloy_text';
											
											$rate = get_post_custom_values($rate_value);
											$rating_text = get_post_custom_values($text_value);
											
											if(!empty($rate[0]) && !empty($rating_text[0]) && $rate[0] >0)
											{
											?>
                                
                                  
                                   - %
                                  
                           						   		}
						  	 }
						   ?>
                              
                                  
                                   %
                                  
                                
                 
                  
                  
                  
                
                                                                   
                                  
                                  
                                                                                                                                                                                                                                                                                                     	 
    % ( 
                                                                                                                  
                                
                                                                                                                                                                                                                                                                                                        $next_post = get_next_post();
                                if (!empty($next_post)){
                                    ?>                                    
post_title; ?>                                                                                                $prev_post = get_previous_post();
                                if (!empty($prev_post)){
                                    ?>                                    
post_title; ?>                                                             
<script></script><script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
 
                                
								
                                    
                                
                                								$pinterest = of_get_option('share_pin','1'); 
								$linkedin = of_get_option('share_linkedin','1');
								?>
                                
                                   
                                
                                
                            
                             
							
Bu Yazıyı Kim Yazdı?
                           
						   
                            
                            
                            
                           
                                 
                           
                            
                            
                            
                           
                    
                    
                    					
                        			                        $themeloy_tags = null;
                        if (!empty($tags)) {
                            foreach ($tags as $tag) {
                                $themeloy_tags[] = $tag->term_id;
                            }
                        };
                        $arg_tag = array('tag__in' => $themeloy_tags, 'showposts' => of_get_option('blog_related_num'), 'post__not_in' => array($post_id));
                        $post_query = null;
                        $post_query = new WP_Query($arg_tag);
                        echo "
\n";
                        while ($post_query->have_posts()) {
                            $post_query->the_post();
                            ?>
                            
																				foreach((get_the_category()) as $category) {
								$cikti = $category->slug;
							}
						?>
					   
                                                         				$thumb = get_post_thumbnail_id(get_the_ID());
                if (!$thumb) {
                    $url[0] = get_template_directory_uri() . '/img/demo/dum-7.jpg';
                }else{
					 $url = wp_get_attachment_image_src( $thumb , '180x115');
				}
                                echo '';
                                ?>
                                
                            
                                                    }
                        wp_reset_query();
                        echo "
\n";
                        ?>                    
 
                    
                           
                    						
                                                $themeloy_categories = null;
                        foreach ($categories as $category) {
                            $themeloy_categories[] = $category->term_id;
                        }
						if(isset($themeloy_tags)) {
							     $arg_cat = 
						array(
							'category__in' => $themeloy_categories, 
							'showposts' => of_get_option('blog_cat_num'), 
							'post__not_in' => array($post_id),
							'tag__not_in' => $themeloy_tags						
							);
						 }else {
							      $arg_cat = 
						array(
							'category__in' => $themeloy_categories, 
							'showposts' => of_get_option('blog_cat_num'), 
							'post__not_in' => array($post_id)											
							);
						 }
                        $post_cat = null;
                        $post_cat = new WP_Query($arg_cat);
                        echo "
\n";
                        while ($post_cat->have_posts()) {
                            $post_cat->the_post();
                            ?>
                            
																				foreach((get_the_category()) as $category) {
								$cikti = $category->slug;
							}
						?>
					   
					   									
                                				$thumb = get_post_thumbnail_id(get_the_ID());
                if (!$thumb) {
                    $url[0] = get_template_directory_uri() . '/img/demo/dum-7.jpg';
                }else{
					 $url = wp_get_attachment_image_src( $thumb , '180x115');
				}
                                echo '';
                                ?>
                                
                            
                                                    }
                        wp_reset_query();
                        echo "
\n";
                        ?>                    
 
                            
					
                    
                    
					
                    
                    <script>
					
						function resim()
						{
							var resim = document.getElementById('resimAlan');
							var width = resim.clientWidth;
							
							if(width<729) document.getElementById('resimAlan').style.display = "none"; 	
						}
						
						resim();
					</script>
 
                        
     
                    
                            ASEREO İnternet Hizmetleri | www.asereo.com | Skype:agokselb