• 07-07-2020, 19:36:47
    #1
    Merhabalar wordpress tema yapmayı öğreniyorum ama 2 problemle karşılaştım. Local sunucuda çalışıyorum.

    İlk problemim wordpress de ayarlar okuma kısmında sabit sayfa seçme butonu gözükmüyor ama front-page sayfası var. Aynı şekilde sayfalar kısmında da front-page gözükmüyor.
    Diğer problemim de bootstrapi siteme eklemek istiyorum fakat kodum çalışmıyor (functions.php)

    <?php
    
    function theme_styles()
    {
    
        // Example of loading a jQuery slideshow plugin just on the homepage
        wp_register_style( 'stylesheet', get_template_directory_uri() . '/css/bootstrap.min.css' );
    
        
    
        // Conditionally load the FlexSlider CSS on the homepage
        if(is_page('home')) {
            wp_enqueue_style('stylesheet');
        }
    
    }
    add_action('wp_enqueue_scripts', 'theme_styles');
  • 07-07-2020, 22:11:39
    #2
    Sadece "wp_enqueue_style('stylesheet');" kısmını yazın if bloğunu silin.
  • 07-07-2020, 22:16:12
    #3
    bilimokur adlı üyeden alıntı: mesajı görüntüle
    Sadece "wp_enqueue_style('stylesheet');" kısmını yazın if bloğunu silin.
    teşekkürler