[英]WordPress Child Theme: Removes Theme Formatting
您需要排隊主題的父樣式,並將其放入子主題中的functions.php中:
<?php
function enqueue_parent_style() {
wp_enqueue_style( 'apostrophe-parent', get_template_directory_uri() . '/style.css' );
}
add_action( 'wp_enqueue_scripts', 'enqueue_parent_style' );
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.