简体   繁体   中英

WordPress Child Theme: Removes Theme Formatting

Utilizing a child theme with the WP 'Apostrophe' theme causes the sample page to display without any of the theme formatting: https://begnbark.com/wp/

'Would appreciate some illumination here.

Thank You!

You need to enqueue theme's parent's style, put this in your functions.php in child theme:

<?php

function enqueue_parent_style() {
  wp_enqueue_style( 'apostrophe-parent', get_template_directory_uri() . '/style.css' );
}
add_action( 'wp_enqueue_scripts', 'enqueue_parent_style' );

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM