Support » Theme: Twenty Twenty » Child theme, not

  • I have been making child themes for years and am utterly stumped why I am unable to get TwentyTwenty to load my styles. Any ideas?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator t-p


    In folder twentytwenty-child create file functions.php and add the following snippet
    to include style.css from parent theme:

    	add_action( 'wp_enqueue_scripts', 'tp_child_enqueue_parent_styles' );
    	function tp_child_enqueue_parent_styles() {
    	   wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
Viewing 1 replies (of 1 total)
  • The topic ‘Child theme, not’ is closed to new replies.