Skip to content

Instantly share code, notes, and snippets.

@finalwebsites
Last active January 12, 2024 08:59
Show Gist options
  • Save finalwebsites/dd3b5b8c7e5db778a5a5eff32bedfcdc to your computer and use it in GitHub Desktop.
Save finalwebsites/dd3b5b8c7e5db778a5a5eff32bedfcdc to your computer and use it in GitHub Desktop.
Child theme for WordPress and OceanWP
<?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' );
}
/*
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