• 02-12-2024, 01:03:00
    #1
    Merhaba,

    function add_custom_content_to_category_20() {
        if (is_category(20)) {
            // Ana dizindeki HTML dosyasını kontrol et ve içeriğini oku
            $file_path = ABSPATH . 'anasayfaicerik.html';
            if (file_exists($file_path)) {
                $custom_content = file_get_contents($file_path);
                if ($custom_content) {
                    // İçeriği sayfanın başına ekle
                    add_action('wp_head', function() use ($custom_content) {
                        echo '<div class="custom-content">' . $custom_content . '</div>';
                    });
                }
            }
        }
    }
    add_action('template_redirect', 'add_custom_content_to_category_20');
    Yukarıdaki gibi gösterip php, js kodları ekleyebileceğim bir yardımcı eklenti arıyorum.
  • 02-12-2024, 01:04:19
    #2
    Dosya yöneticisinden yapabilirsiniz file-manager eklentisini yükleyin.
  • 02-12-2024, 01:06:15
    #3
    Ckeditor bunu arıyor olabilirsiniz. Farklı pluginleride mevcut.