Support » Theme: Twenty Twenty-One » Child theme Problem

  • Resolved rolfeyule



    The website is still on construction, I am not succeeding on creating a child theme that works, I have done it before for twenty nineteen.

    Is the function.php script you share here, maybe not working with this new theme?

    The child theme would normally appear in the source in the inspector, not this time.



    • This topic was modified 2 weeks, 3 days ago by rolfeyule.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • this simplified enqueuing of the child stylesheet works for me:

    /*twentytwentyonechild functions*/
    function twenty_twenty_one_child_style() {
    	wp_enqueue_style( 'child-style', get_stylesheet_uri() );
    add_action( 'wp_enqueue_scripts', 'twenty_twenty_one_child_style', 20 );
    Thread Starter rolfeyule


    Thank you so much, Michael, I had missed something in the script, the get(‘version’).

    And honestly, I still don’t understand how you got there… And I just realised there are plugin to instal child theme…

    THANK YOU! I went crazy yesterday! I will have a calm day today due to you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.