├── screenshot.png ├── style.css ├── README.md └── functions.php /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oceanwp/oceanwp-child-theme/HEAD/screenshot.png -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: OceanWP Child Theme 3 | Theme URI: https://oceanwp.org/ 4 | Description: OceanWP WordPress theme. Sample child theme. 5 | Author: OceanWP 6 | Author URI: https://oceanwp.org/ 7 | Template: oceanwp 8 | Version: 1.0 9 | */ 10 | 11 | /* Parent stylesheet should be loaded from functions.php not using @import */ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | OceanWP Child Theme 2 | ================= 3 | 4 | Ready-to-Use Child Theme for the OceanWP free WordPress theme. 5 | 6 | ### Usage 7 | Download the child theme zip file. Upload the zip (oceanwp-child-theme-master.zip) under your WordPress dashboard, Appearance > Themes.The other method would be to extract files and upload via FTP at wp-content/themes/. 8 | 9 | 10 | ### Renaming 11 | You can rename the zip file so it isn't called oceanwp-child-theme-master.zip. 12 | You can also change the "Theme Name" at the top of the style.css file, as well as the rest of information in the same file. This is called whitelabeling a child theme. 13 | -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | get( 'Version' ); 27 | 28 | // Load the stylesheet. 29 | wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'oceanwp-style' ), $version ); 30 | 31 | } 32 | 33 | add_action( 'wp_enqueue_scripts', 'oceanwp_child_enqueue_parent_style' ); 34 | --------------------------------------------------------------------------------