Catatan Pengembang

Child theme, shortcode, file templat, dan tempat menyimpan kode kustom.

Beranda dokumentasi › Catatan Pengembang

Child theme dan kode kustom

Pasang washlora-child.zip dan aktifkan child theme untuk menimpa templat dan gaya. Simpan PHP kustom di child theme atau plugin pendamping kecil, jangan pernah di tema induk, agar pembaruan tidak menimpanya.

Shortcode

ShortcodeKegunaan
[laundry_classic_sections]Menampilkan bagian-bagian terstruktur dari halaman Classic Editor. Pertahankan di konten utama halaman.
[laundryes_commerce_store]Menampilkan toko katalog. Pada halaman biasa, shortcode ini menampilkan katalog lengkap.
[laundryes_woocommerce_store niche="laundromat"]Menampilkan toko untuk satu niche.

File tema

File templat utama di folder tema Washlora (laundryes, versi 2.0.0):

File atau folderFungsi
header.php, footer.php, sidebar.phpBagian shell bersama.
home-page.php, about-page.php, pricing.php, contact.php, faqs-page.php, blog-page.phpTemplat halaman.
archive-laundry_service.php, single-laundry_service.phpTemplat arsip dan tunggal untuk tipe konten Laundry Service.
single.php, archive.php, search.php, 404.php, comments.php, index.php, page.phpTemplat WordPress standar.
woocommerce.phpTemplat pembungkus WooCommerce.
inc/Modul tema: shell commerce, navigasi demo, font lokal, mega menu, identitas niche, menu niche, performa, orientasi plugin, preset gaya, dan fungsi templat.
assets/, languages/, rtl.cssSkrip, gaya, dan gambar; file terjemahan; gaya kanan-ke-kiri.
Nama file mencerminkan versi 2.0.0 dan dapat berubah di versi berikutnya. Timpa templat di child theme alih-alih mengedit file-file ini.