• 27-01-2019, 19:56:57
    #1
    Merhaba,

    single.php dosyasına adsense kodu eklemek istiyorum ama harf bile yazsam otomatikmen 500 server error hatası almaktayım.

    <?php
    /**
     * The template for displaying all single posts
     *
     * @package WordPress
     * @subpackage sss_BLOG
     * @siStreetStyleiana Blog 1.0
     */
    
    global $STREETSTYLE_GLOBALS;
    $STREETSTYLE_GLOBALS['show_page_title'] = streetstyle_get_theme_option("single_top_title");
    
    get_header();
    
    while ( have_posts() ) { the_post();
    
    	get_template_part( 'content', get_post_format() );
    
    	// Previous/next post navigation.
    	if(streetstyle_get_theme_option("single_post_navigation") == 'yes') {
    		the_post_navigation(array(
    			'next_text' => '<span class="meta-nav" aria-hidden="true">' . esc_html__('Next', 'streetstyle') . '</span> ' .
    				'<span class="screen-reader-text">' . esc_html__('Next post:', 'streetstyle') . '</span> ' .
    				'<h4 class="post-title">%title</h4>',
    			'prev_text' => '<span class="meta-nav" aria-hidden="true">' . esc_html__('Previous', 'streetstyle') . '</span> ' .
    				'<span class="screen-reader-text">' . esc_html__('Previous post:', 'streetstyle') . '</span> ' .
    				'<h4 class="post-title">%title</h4>',
    		));
    	}
    
    	// Related posts
    	require streetstyle_get_file_dir('/templates/post-related.php');
    
    	// If comments are open or we have at least one comment, load up the comment template.
    	if ( comments_open() || get_comments_number() ) {
    		comments_template();
    	}
    	
    	get_template_part( 'templates/counter' );
    }
    
    get_footer();
    ?>
    Yardımlarınızı bekliyorum.
  • 27-01-2019, 20:03:23
    #2
    Üyeliği durduruldu
    content temanizda böyle bir dosya icerisine ekleyiniz
  • 27-01-2019, 20:05:33
    #3
    Sivas58 adlı üyeden alıntı: mesajı görüntüle
    content temanizda böyle bir dosya icerisine ekleyiniz
    Anlamadım hocam biraz daha açık yazar mısınız?
  • 27-01-2019, 20:11:22
    #4
    wordpress dizinindeki single.php ye eklemeye çalışır iseniz hata alırsınız tema klasöründeki single.php ye eklemeyi deneyin
  • 27-01-2019, 20:12:11
    #5
    Tema klasörünüzde template-parts klasörü vardır büyük ihtimalle. Onun içindeki content.php içerisine ekleyin kodlarınızı.
  • 27-01-2019, 20:24:29
    #6
    ferruhozdin adlı üyeden alıntı: mesajı görüntüle
    wordpress dizinindeki single.php ye eklemeye çalışır iseniz hata alırsınız tema klasöründeki single.php ye eklemeyi deneyin
    O kadar da cahil değiliz hocam.



    Sorunum çözülmüştür, yardımcı olan arkadaşlara teşekkür ediyorum.
  • 27-01-2019, 20:28:36
    #7
    Bana yazsaydın diyeceğim ama söveceksin çokmu bakıyosun diye o yüzden bişey demiyorum sana.