Last active
January 12, 2024 08:59
-
-
Save finalwebsites/dd3b5b8c7e5db778a5a5eff32bedfcdc to your computer and use it in GitHub Desktop.
Child theme for WordPress and OceanWP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_enqueue_scripts', 'fw_theme_enqueue_styles', 100 ); | |
function fw_theme_enqueue_styles() { | |
$dependencies = array(); // add here other theme handles, for example from the parent theme or WooCommerce | |
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', $dependencies, '1.0.0' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: OceanWP Child | |
Description: A basic Child Theme for WordPress | |
Author: Olaf Lederer | |
Author URI: https://www.olaflederer.com | |
Template: oceanwp | |
Version: 1.0.0 | |
License: GNU General Public License v2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
Text Domain: owpchildtheme | |
*/ | |
/* place your own CSS code below */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment