Skip to content

Instantly share code, notes, and snippets.

@tripdog
Forked from EastSideCode/functions.php
Created November 16, 2021 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tripdog/c8afaf77a2cdd213f31577ea764aaa52 to your computer and use it in GitHub Desktop.
Save tripdog/c8afaf77a2cdd213f31577ea764aaa52 to your computer and use it in GitHub Desktop.
WordPress Child theme functions.php
<?php
function add_parent_styles() {
wp_enqueue_style('parent-style', get_template_directory_uri().'/style.css');
}
add_action('wp_enqueue_scripts', 'add_parent_styles');
@tripdog
Copy link
Author

tripdog commented Nov 16, 2021

Use this snippet to load the parent theme's CSS file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment